Sample RESTful API base on php and MySQL