The operations that can be performed on resources should be defined via HTTP methods. The following are the common methods that are used in a RESTful API:
- GET method: A GET method retrieves a representation of the resource at the specified URI. The response of the API contains the details of the requested resource. This method should be implemented as a safe operation, meaning that performing a GET operation on resources should not cause any side effects to the state of anything. It can be invoked multiple times and the response of this operation can be cached.
- POST method: A POST method creates a new resource at the specified URI. The identifier of the resource is generated by the server. The response ...