- POST
localhost:3000/signup
- Request Body:
{ "email": "[email protected]", "password": "Password@123", "name": "John Doe" }
- POST
localhost:3000/signin
- Request Body:
{ "email": "[email protected]", "password": "Password@123" }
- POST
localhost:3000/todo
- Request Body:
{ "title": "Buy groceries", "done": false, "deadline": "2024-09-30T15:00:00Z" }
- GET
localhost:3000/todo
- PUT
localhost:3000/todo/:id
- Request Body:
{ "title": "Buy milk and eggs", "done": true }
- DELETE
localhost:3000/todo/:id
For routes requiring authentication, include the token in the Authorization
header:
Authorization: Bearer <your_token>