REST (Representational State Transfer) API
PHPHandling HTTP Requests
This is a controller system that handles requests made by the website, It makes the application lightweight. Here's an instance of an extremely simple setup and note that everything is put into one file:
This app checks different server request methods and gives a JSON response to each one.
Handling Unique HTTP Requests
This is a controller system that handles requests made by the website, It makes the application lightweight. Here's an instance of an extremely simple setup and note that everything is put into one file:
This would be a full REST API, that can get, update, create and delete users. You can link these actions to forms, where someone is in their account settings and want to delete their account for example - connect the delete form with the "user_controller.php" page.