Skip to content

API Routes

Parker Bolick edited this page Nov 16, 2021 · 1 revision

User Authentication

Create

  • POST /api/auth/signup
  • POST /api/auth/login

Read

  • GET /api/users/:userId

Update

  • PUT /api/users/:userId

Delete (Log out)

  • GET /api/auth/logout

Projects

Create

  • POST /api/projects/

Read

  • GET /api/projects/:projectId
    • Get one project
  • GET /api/projects/:userId
    • Get all user projects

Update

  • PUT /api/projects/:projectId

Delete

  • POST /api/projects/delete
    • POST route will contain userId, projectId in request body

Sections

Create

  • POST /api/sections/

Read

  • GET /api/sections/:sectionId
    • Get one section
  • GET /api/sections/:projectId
    • Get all sections for project

Update

  • PUT /api/sections/:sectionId

Delete

  • POST /api/sections/delete

Tasks

Create

  • POST /api/tasks/

Read

  • GET /api/tasks/:taskId
    • Get one task
  • GET /api/tasks/:userId
    • Get all tasks for user

Update

  • PUT /api/tasks/:taskId

Delete

  • POST /api/tasks/delete

Comments

Create

  • POST /api/comments/

Read

  • GET /api/comments/:commentId
    • Get one comment
  • GET /api/comments/:taskId
    • Get all comments for a task

Update

  • PUT /api/comments/:commentId

Delete

  • POST /api/tasks/delete

Clone this wiki locally