This is a simple REST API built using PHP. It provides endpoints for handling GET, POST, PUT, and DELETE requests.
GET /resource
: Retrieves data for the specified resourcePOST /resource
: Creates a new resource with the provided dataPUT /resource
: Updates the specified resource with the provided dataDELETE /resource
: Deletes the specified resource
- Clone this repository.
- Set up a web server and configure it to point to the
root
directory
Make HTTP requests to the endpoints listed above. The API will return data in JSON format.
- PHP >= 7.0
Here is an example of how to use the API to retrieve data for a resource:
curl -X GET http://localhost/resource/1