We will focus on creating REST services for a basic todo management system. We will create services for the following:
- Retrieving a list of todos for a given user
- Retrieving details for a specific todo
- Creating a todo for a user
We will focus on creating REST services for a basic todo management system. We will create services for the following:
One of the best practices of REST services is to use the appropriate HTTP request method based on the action we perform. In the services we exposed until now, we used the GET method, as we focused on services that read data.
The following table shows the appropriate HTTP Request method based on the operation that we perform:
HTTP Request Method | Operation |
GET | Read--Retrieve details for a resource |
POST | Create--Create a new item or... |