In this example i will create new_table table and create rest api of new_table.You can check response for GET, POST, PUT and DELETE for list, create, update and delete. So let's just follow bellow step and you will get best api platform.
Step 1 : Create 'new_table' table
Step 2 : create file db.php ( Connect in database )
Step 3 : create file demo_api.php action : GET, URL:http://localhost/demo_api
action : POST, URL:http://localhost/demo_api
action : PUT, URL:http://localhost/demo_api/{id}
action : DELETE,URL:http://localhost/demo_api/{id}