Skip to content

task manager api doc

Thana Wisutphusi edited this page Jan 26, 2021 · 1 revision

Welcome to the tasks-manager-api wiki!
CRUD API DOC for this task-manager

====================

CREATE USER
[POST] https://thana-task-manager.herokuapp.com/users

Request body = {
“name”:“user”,
“email”:“user@example.com”,
“password”:“123456789”
}

====================

READ USER
[GET] https://thana-task-manager.herokuapp.com/users
[GET] https://thana-task-manager.herokuapp.com/users/me << Require Authentication .. login first!

====================

UPDATE USER
[PATCH] https://thana-task-manager.herokuapp.com/users/me << Require Authentication .. login first!

Request body = {
“name”:“new_username”
}

====================

DELETE USER
[DELETE] https://thana-task-manager.herokuapp.com/users/me << Require Authentication .. login first!
====================

USER LOGIN
[POST] https://thana-task-manager.herokuapp.com/users/login

Request body = {
“email”:“user@example.com”,
“password”:“123456789”
}

====================

USER LOGOUT
[POST] https://thana-task-manager.herokuapp.com/users/logout
[POST] https://thana-task-manager.herokuapp.com/users/logoutAll << use this API to logout from all devices.

====================

TASK MODEL All Task API require Authentication
====================

CREATE TASK
[POST] https://thana-task-manager.herokuapp.com/tasks

Request body = {
“description”:“Finish NodeJs Course”
}

====================

READ TASKS
[GET] https://thana-task-manager.herokuapp.com/tasks
[GET] https://thana-task-manager.herokuapp.com/tasks/:taskid << Read Individual task by id

====================

UPDATE TASK
[PATCH] https://thana-task-manager.herokuapp.com/tasks/:taskid

Request body = {
“description”:“description for this task has been changed”
}

====================

DELETE TASK
[DELETE] https://thana-task-manager.herokuapp.com/tasks/:taskid

====================

Clone this wiki locally