0% found this document useful (0 votes)
19 views1 page

Create Todo Management: The User Is Admin or Not

This document outlines APIs for a ToDo management system including login, signup, and CRUD APIs for Todos. The Todos APIs allow users to create, list, update, and delete their Todos and also add comments and a single reply to comments on their Todos. Admin users have additional access to list all Todos across all users via a paginated response. Authentication is required for all Todos APIs and each Todo has an end date and status indicating if the date is passed.

Uploaded by

Rahul Rajpoot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Create Todo Management: The User Is Admin or Not

This document outlines APIs for a ToDo management system including login, signup, and CRUD APIs for Todos. The Todos APIs allow users to create, list, update, and delete their Todos and also add comments and a single reply to comments on their Todos. Admin users have additional access to list all Todos across all users via a paginated response. Authentication is required for all Todos APIs and each Todo has an end date and status indicating if the date is passed.

Uploaded by

Rahul Rajpoot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Create ToDo management

Apis
1. Login
2. Signup
3. CRUD APIs for Todo
4. Add comment to the todo
5. Add only one reply to the comments

Brief about what to do


Login:- User can log in using email and password
Signup:- For signing up user has to provide email, phone_number(should be unique), password,
username.

TODO APIs
All these APIs should betoken authenticated. All Todos will have an end date and a status that
shows whether the todo expired date is crossed or not.
1. Create:- Users should be able to create as many todos as they can.
2. List1:- Each user can list there todo. Use Pagination here to give a paginated response.
3. List2:- Only admin users can use this API where they can see Todos created by all the users
in a database. It should return a paginated response.
4. Update:- Users can update the details of their Todos.
5. Delete:- Can delete their todos.
6. Add comment to todos:- Users can add a comment on their Todo.
7. Add Reply:- Users can add a reply to their comment. For ease let’s keep it only 1 reply.

Note:- If the Django framework is used please create a custom permission class for checking
the user is admin or not.

You might also like