- Path:
<URL>/task/createTask
- Method: POST
- Input:
- Title (String)
- Description (String)
- Due Date (Date)
- JWT Auth Token (Authorization Header)
- Path:
<URL>/subTask/createSubTask
- Method: POST
- Input:
- Task ID (String)
- Description (String)
- JWT Auth Token (Authorization Header)
- Task ID (String)
- Path:
<URL>/task/getAllUserTask
- Method: GET
- Query Parameters:
- Priority (Optional, Integer)
- Due Date (Optional, Date)
- Status (Optional, Number)
- Search (Optional, String) -> Search for titles that contains or matches the string
- Pagination (Optional, Page Number and Page Size)
- Authorization Header: JWT Auth Token
- Path:
<URL>/subTask/getAllUserSubTasks
- Method: GET
- Query Parameters:
- Task ID (Optional, String)
- Status (Optional, Number)
- Task ID (Optional, String)
- Authorization Header: JWT Auth Token
- Path:
<URL>/task/updateTask
- Method: POST
- Input:
- Due Date (Optional, Date)
- Status (Optional, "TODO" or "DONE")
- Authorization Header: JWT Auth Token
- Path:
<URL>/subTask/updateSubTask
- Method: POST
- Input:
- SubTaskId (String)
- Status (0-"INCOMPLETE" or 1-"COMPLETE")
- Path:
<URL>/task/deleteTask
- Method: POST
- Input:
- TaskId (String)
- Authorization Header: JWT Auth Token
- Path:
<URL>/subTask/deleteSubTask
- Method: POST
- Input:
- SubTaskId (String)
- Authorization Header: JWT Auth Token
- Path:
<URL>/user/getCallbackResponse
- Method: POST
- Input:
- CallSid (String)
- CallStatus (String)
- Path:
<URL>/user/createUser
- Method: POST
- Input:
- PhoneNumber (String)
- Logic: Every day at midnight, check tasks due_date and update priority accordingly.
- Logic: Every hour, check for overdue tasks. If found, initiate voice calling using Twilio.
- Prioritize users based on priority (0 -> 1 -> 2).
- Only call the next priority user if the previous one doesn't answer.
- Priority 0: High Priority
- Priority 1: Medium Priority
- Priority 2: Low Priority
-
Import
taskManager-postman.postman_collection.json
in your postman application. -
Navigate to
Environments
and create an environment. -
Add following variables and click save.
url
authTk
- Everytime you calluser/createUser
,auth_token
will be assigned to this variable.taskId
- Everytime you create a new task withtask/createTask
endpoint the_id
from response will be assigned to this variable.