Skip to content

API Documentation

Adam Tang edited this page May 10, 2022 · 2 revisions

Backend Routes

Users

GET /api/users_details/

  • Returns the information for all users

GET /api/users_details/:id

  • Returns the information for one user

Sessions

GET /api/auth/

  • Returns the information for the logged in user

POST /api/auth/signup

  • Signs a new user up

POST /api/auth/login

  • Logs in a user

GET /api/auth/logout

  • Logs out a user

Projects

GET /api/projects/

  • Returns the information for all projects

POST /api/projects/

  • Creates a new project

GET /api/projects/:id

  • Returns the information for one project

DELETE /api/projects/:id

  • Deletes a project

Issues

GET /api/issues/

  • Returns the information for all issues

POST /api/issues/

  • Creates a new issue

GET /api/issues/:id

  • Returns the information for one issue

PUT /api/issues/:id

  • Edits the information for one issue

DELETE /api/issues/:id

  • Deletes an issue

GET /api/issues/:id/comments/

  • Returns all the comments of one issue

Comments

POST /api/comments/

  • Creates a new comment

PUT /api/comments/:id

  • Edits a comment

DELETE /api/comments/:id

  • Deletes a comment

Clone this wiki locally