todobackendapi
بواسطة @elhadjx
23
عن هذا المشروع
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 } }
من ملف README الخاص بالمشروع على GitHub
- النجوم
- 23
- التفريعات
- 0
- آخر تحديث
- 27/03/2023
أضف هذه الشارة إلى ملف README
أظهر أن مشروعك مُدرج على «صُنع في الجزائر».
[](https://www.madeinalgeria.dev/projects/todobackendapi)