Professional Documents
Culture Documents
Create Todo Management: The User Is Admin or Not
Create Todo Management: The User Is Admin or Not
Apis
1. Login
2. Signup
3. CRUD APIs for Todo
4. Add comment to the todo
5. Add only one reply to the comments
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.