todobackendapi
by @elhadjx
23
About this project
POST /users/: Create a new user. - Request body: { "email": string } - Response body: { "id": string, "email": string, "todos": [] } POST /users/login: Log in a user. - Request body: { "email": string } - Response: Email sent GET /users/:token/todos: Get all todos for a user. - Request parameters: token - JWT token for user authentication. - Response body: [{ "title": string, "description": string, "endDate": Date, "completed": boolean, "order": number, "id": string }] POST /users/:token/todos: Create a new todo for a user, sets timeout to send email before todo's end date by 2h. - Request parameters: token - JWT token for user authentication. - Request body: { "todo": { "title": string, "description": string, "endDate": Date } } - Response body: { "id": string, "name": string, "email": string, "password": string, "todos": [...] } PUT /users/:token/todos/:todoId: Update a todo for a user. - Request parameters: token - JWT token for user authentication, todoId - ID of the todo to update. - Request body: { "todo": { "title": string, "description": string, "endDate": Date, "completed": boolean, "order": number } }
From the project README on GitHub
- Stars
- 23
- Forks
- 0
- Last push
- 27 Mar 2023
Add this badge to your README
Show that your project is listed on Made in Algeria.
[](https://www.madeinalgeria.dev/projects/todobackendapi)