Skip to content
Gabriel Talavera edited this page Apr 25, 2018 · 5 revisions

API Endpoints

users

  • GET /api/users/:id - get user
  • POST /api/users - sign up

projects

  • GET /api/projects - get projects of current user
  • GET /api/projects/:projectId - get specific project
  • POST /api/projects - create new project
  • DELETE /api/projects/:projectId - remove project

auth

  • GET /auth/google - log in
  • GET /auth/google/callback - verify with google
  • GET /api/logout - log out
  • GET /api/current_user - get current user

commits

  • POST /api/branches/:branchId/commits - create new commit
  • GET /api/commits/:commitId - show page for individual commits

branches

  • GET /api/branches/:branchId/commits - get commits associated with branch
  • POST /api/branches - create new branch

revisions

  • GET /api/revisions/:revisionId - get revision view

merge

  • POST /api/merge/:firstDraft/:secondDraft - custom route to handle merging drafts (could end up changing)

Frontend Routes

  • / - splash page
  • /login
  • /signup
  • /dashboard - projects homepage
  • /projects/projectId/branchId - project show page
  • /document/documentId - document show page/edit page
  • /document/new - document creation page
Clone this wiki locally