Download the Dockerfile and docker-compose.yaml
Execute docker compose up -d
(Docker compose plugin) or docker-compose up -d
(docker compose standalone)
Access the web using port 8080 or the port you've specified
Method: POST
Endpoint: /api/auth/signup
Headers:
Content-Type: application/json
{
"username" : " username" ,
"password" : " password"
}
{
"status" : " success/fail" ,
"message" : " User successfully created./?"
}
Method: POST
Endpoint: /api/auth/login
Headers:
Content-Type: application/json
{
"username" : " username" ,
"password" : " password"
}
{
"status" : " success/fail" ,
"message" : " Successfully verified the credentials/?"
}
Method: POST
Endpoint: /api/auth/login
Headers:
Authorization: Bearer ${token}
{
"status" : " success/?" ,
"message" : " Successfully logged out"
}
Method: POST
Headers:
Authorization: Bearer (token)
Endpoint: /api/verifyToken
{
"status" : " success/fail" ,
"message" : " Token is valid/Incorrect or expired token/No token provided"
}
Get all tasks for specific user
Method: GET
Headers:
Authorization: Bearer (token)
Endpoint: /api/task
{
"status" : " success/fail" ,
"message" : " /?" ,
"data" : [
{
"task_id" : " (task_id)" ,
"description" : " task description" ,
"status" : " Not Completed/Done" ,
"createdAt" : " date of created" ,
"updatedAt" : " date of updated" ,
"UserId" : " (user_id)"
}
]
}
Create a task for specific user
Method: POST
Headers:
Authorization: Bearer (token)
Content-Type: application/json
Endpoint: /api/task
{
"description" : " (task description)"
}
{
"status" : " success/fail" ,
"message" : " Successfully created task/?"
}
Update a task for specific user
Method: PUT
Headers:
Authorization: Bearer (token)
Content-Type: application/json
Endpoint: /api/task
{
"taskId" : " (task id)" ,
"description" : " new description" ,
"status" : " new status (In Progress/done)"
}
{
"status" : " success/fail" ,
"message" : " Successfully updated the task/Unable to update the task: (reason)"
}
Delete a task for specific user
Method: DELETE
Headers:
Authorization: Bearer (token)
Content-Type: application/json
Endpoint: /api/task
{
"taskId" : " (task id)"
}
{
"status" : " success/fail" ,
"message" : " Successfully deleted the task/Unable to delete task (reason)"
}