This is a code sample showing a RESTful API in PHP