A sample RESTful API code with PHPunit test.