Read through the code from the lecture, make sure you understand the flow of the program.
Add three more actions:
Get a single to-do with ID :id
Clears the list of to-dos
Sets the done
and/or description
fields of a single to-do.
- All requests that need a body should be in JSON format, and follow the request structure of the other actions
- All responses should be in JSON format, and follow the response structure of the other actions
- Follow the anatomy of the project
- Make sure your code is DRY
- Follow the REST design principles: use the proper method, response status codes, and consistent URL paths
- Test your API using Postman