Membuat website untuk manajemen task
heroku = https://kanban-app-gacor.herokuapp.com/ firebase = https://kanban-app-9687b.web.app/
List of available endpoint:
POST /dashboard
GET /dashboard
PUT /dashboard/:id
DELETE /dashboard/:id
POST /register
POST /login
Request headers
{
"accesstoken": "<accesstoken>"
}
Request Body
{
"title": "string",
"description": "string",
"category": "string",
"UsersId": "integer"
}
Response (201 - Created)
{
"id": "integer",
"title": "string",
"description": "string",
"category": "string",
"UsersId": "integer",
"createdAt": "date",
"updatedAt": "date"
}
Response (400 - Bad Request)
[
{
"message": "Title is empty"
},
{
"message": "Description is empty"
}
]
Response (500 - Internal Server Error)
{
"message": "Internal Server Error"
}
Request headers
{
"accesstoken": "<accesstoken>"
}
Response (200 - OK)
[
{
"id": 1,
"title": "makan",
"description": "makan ayam",
"category": "backlog",
"UsersId": 1
},
{
"id": 2,
"title": "minum",
"description": "minum air",
"category": "done",
"UsersId": 2
},
{
"id": 3,
"title": "makan",
"description": "makan sosis",
"category": "completed",
"UsersId": 1
}
]
Response (500 - Internal Server Error)
{
"message": "Internal Server Error"
}
Request headers
{
"accesstoken": "<accesstoken>"
}
Request Body
{
"title": "string",
"description": "string",
"category": "string",
"UsersId": "integer"
}
Response (200 - OK)
{
"id": "integer",
"title": "string",
"description": "string",
"category": "string",
"UsersId": 1,
"createdAt": "date",
"updatedAt": "date"
}
Response (400 - Bad Request)
[
{
"message": "Title is empty"
},
{
"message": "Description is empty"
}
]
Response (404 - Not Found)
{
"message": "error Not Found"
}
Response (500 - Internal Server Error)
{
"message": "Internal Server Error"
}
Request headers
{
"accesstoken": "<accesstoken>"
}
Response (200 - OK)
{
"id": "integer",
"title": "string",
"description": "string",
"category": "string",
"UsersId": 1,
"createdAt": "date",
"updatedAt": "date"
}
Response (404 - Not Found)
{
"message": "error Not Found"
}
Response (500 - Internal Server Error)
{
"message": "Internal Server Error"
}
Request Body
{
"email": "string",
"password": "string",
"organization": "string"
}
Response (201 - Created)
{
"id": "integer",
"email": "string",
"password": "string",
"organization": "string"
}
Response (400 - Bad Request)
[
{
"message": "You don't put any password"
},
{
"message": "You don't put any email"
}
]
Response (500 - Internal Server Error)
{
"message": "Internal Server Error"
}
Request Body
{
"email": "string",
"password": "string"
}
Response (200 - OK)
{
"accesstoken": "<accesstoken>"
}
Response (400 - Bad Request)
[
{
"message": "You don't put any password"
},
{
"message": "You don't put any email"
}
]
Response (500 - Internal Server Error)
{
"message": "Internal Server Error"
}