Backend Routes - laamp/Conduit GitHub Wiki

API Endpoints

users

  • POST /api/users/signup -- creates a new user
  • POST /api/users/login -- logs user in
  • GET /api/users/current -- get current user

projects

  • GET /api/projects -- get all projects (newest => oldest)
  • POST /api/projects -- create a project
  • GET /api/projects/:id -- get a project by id
  • GET /api/projects/user/:userId -- get all of a user's projects

tasks

  • GET /api/tasks/:id -- get a task by id
  • GET /api/tasks/user/:userId -- get all tasks assigned to a user
  • GET /api/tasks/project/:projectId -- get all tasks from a project
  • POST /api/tasks -- create a task