- Using Postman or cURL: We can test our API using tools like Postman or cURL. Here are some example requests:
- GET All Tasks: This retrieves a list of all tasks.
- POST Create Task: This creates a new task by sending a JSON payload.
- GET Task by ID: This fetches a specific task.
- PUT Update Task: This updates the task’s completion status.
- DELETE Task: This deletes a task by ID.
Leave a Reply