Skip to content

Membuat website untuk manajemen task

Notifications You must be signed in to change notification settings

bobkombat/kanban

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

kanban

Membuat website untuk manajemen task

heroku = https://kanban-app-gacor.herokuapp.com/ firebase = https://kanban-app-9687b.web.app/

RESTful endpoints

List of available endpoint:

  • POST /dashboard
  • GET /dashboard
  • PUT /dashboard/:id
  • DELETE /dashboard/:id
  • POST /register
  • POST /login

POST /dashboard

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"
}

GET /dashboard

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"
}

PUT /dashboard/:id

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"
}

DELETE /dashboard/:id

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"
}

POST /register

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"
}

POST /login

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"
}

About

Membuat website untuk manajemen task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 69.7%
  • JavaScript 22.3%
  • CSS 4.9%
  • HTML 3.1%