{ "username": "user", "email": "[email protected]", "password" : "12345" }
{ "username" : "admin", "email" : "[email protected]", "password" : "12345", "role" : "Admin" }
{ "message": "User Register Successfully", "user": { "username": "user", "email": "[email protected]", "password": "$2a$10$2hz6geZ30rxIpwGgvRsNf.B4h7I.0uD02eD3rYI0bGgcb5fBDl6ZG", "role": "User", "_id": "66c8c63ed313d18bce571554" } }
{ "email": "[email protected]", "password" : "12345" }
{ "email": "[email protected]", "password" : "12345" }
body :-
{ "title": "Test Task 2", "description": "This is a test task", "priority": "high", "status": "open" }
response :-
{ "message": "Task created successfully", "task": { "title": "admin created Task", "description": "This is a admin created test task", "priority": "high", "status": "open", "assignedTo": "66c8cfce0120fb9d2e44ecea", "_id": "66c8d59b233f8bf670287570", } }
body :- { "title": "Test Task 2", "description": "This is a test task", "priority": "high", "status": "in-progress", }
login with admin credential :- Provided above please check