Skip to content

Backend Routes

Arno-co edited this page Mar 5, 2020 · 1 revision

Backend Routes

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • GET /api/users - returns the user information and displays Teams and Projects he belongs to and their corresponding tasks.
  • POST /api/users - sign up

session

  • POST /api/session - log in
  • DELETE /api/session - log out

projects

  • GET /api/projects - returns the projects the user is part of
  • GET /api/projects/:id - returns project
  • POST /api/projects - creates a project
  • PATCH /api/projects/:id - edit a project
  • DELETE /api/projects/:id - remove a project

tasks

  • GET /api/tasks - returns the tasks the user is either author of or assigned to
  • GET /api/tasks/:id - returns task
  • POST /api/tasks - creates a task
  • PATCH /api/tasks/:id - edit a task
  • DELETE /api/tasks/:id - remove a task

teams

  • GET /api/teams - returns the teams the user belongs to
  • GET /api/teams/:id - returns team
  • POST /api/teams - creates a team
  • PATCH /api/teams/:id - edit a team
  • DELETE /api/teams/:id - remove a team

Clone this wiki locally