https://jovipetra.firebaseapp.com/
https://kanban-jovi.herokuapp.com
-
url :
/user/
-
Type :
POST
url :/user/login
Body :Response :{ email : String, password : String }
On Fail :"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJqb3ZpQG1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkS3ZVbkdjb01RdjBsMDhna0toSnhJZWN2eXpJbzF3Unp3b0RJSnh3L01kOHlYSHBGcFpMUm0iLCJpYXQiOjE1ODIxMjAxNDB9.-kmgjkJiVQL-e7lwoJXa8IOn8INkNo7ZWh8yJGNAHZ8"
- Unregistered email :
{ "msg": "user not found" }
- Wrong password :
{ "msg": "invalid password" }
-
Type :
POST
url :/user/register
Body :Response :{ email : String, password : String }
On Fail :"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiZW1haWwiOiJqb3ZpQG1haWwuY29tIiwicGFzc3dvcmQiOiIkMmIkMDgkS3ZVbkdjb01RdjBsMDhna0toSnhJZWN2eXpJbzF3Unp3b0RJSnh3L01kOHlYSHBGcFpMUm0iLCJpYXQiOjE1ODIxMjAxNDB9.-kmgjkJiVQL-e7lwoJXa8IOn8INkNo7ZWh8yJGNAHZ8"
- Null email :
{ "msg": "User.email cannot be null" }
- Null password :
{ "msg": "User.password cannot be null" }
-
Type :
-
url :
/task/
-
headers : { token :
STRING
} -
response body if token is not provided in the headers :
{ "msg" : "invalid token" }
-
Type :
POST
url :/task/
Body :Response :{ title : String, category : String, status : String, }
{ "id": 22, "title": "test", "category": "ini test Task di dalam project", "status": 'backlog, "UserId": 1, "updatedAt": "2020-02-19T14:38:52.952Z", "createdAt": "2020-02-19T14:38:52.952Z", "ProjectId": null }
-
Type :
GET
url :/task/
Response :[ { "title": 0, "id": 22, "category": "test", "status": "backlog", "due_date": null, "UserId": 1, "updatedAt": "2020-02-19T14:38:52.952Z", "createdAt": "2020-02-19T14:38:52.952Z", "ProjectId": null }, ... ]
-
Type :
GET
url :/task/:id
Response :{ "status": 0, "id": 22, "category": "test", "status": "backlog", "due_date": null, "UserId": 1, "updatedAt": "2020-02-19T14:38:52.952Z", "createdAt": "2020-02-19T14:38:52.952Z", "ProjectId": null }
-
Type :
UPDATE
url :/task/:id
, Body :Response :{ title : String, category : String, status : String, }
{ 1 }
-
Type :
DELETE
url :/task/:id
, Response :{ 1 }
-
Type :