Skip to content

Backend Routes

Joshua edited this page Jan 21, 2019 · 1 revision

Backend Routes

HTML

GET / static_pages#root

API Endpoints

users

  • POST /api/users - sign up

session

  • POST /api/session - login

  • DELETE /api/session - logout

boards

  • GET api/boards - get boards

  • POST /api/boards - create new board

  • PATCH /api/boards/:id - update board

  • DELETE /api/boards/:id - delete board

lists

  • POST /api/boards/:board_id/lists - create list belonging to the board

  • PATCH /api/boards/:board_id/lists/:id - edit list

  • DELETE /api/boards/:board_id/lists/:id - delete list

cards

  • GET /lists/:list_id/cards - get all cards for a list

  • POST /lists/:list_id/cards - create new card

  • GET /api/cards/:id - get card info

  • PATCH /api/cards/:id - edit card

  • DELETE api/cards/:id - delete card

comments

  • POST /api/cards/:card_id/comments - create card comment

  • DELETE /api/comments/:id - delete comment

Clone this wiki locally