Skip to content

Backend Routes

Taylor Musolf edited this page Oct 28, 2021 · 6 revisions

HTML

  • GET / StaticPagesController#root

API Endpoints

users

  • POST /api/users - sign up

session

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

projects

  • GET /api/projects - returns all projects
  • GET /api/projects/:id - returns a project
  • POST /api/projects - creates a project
  • PATCH /api/projects/:id - edit a project
  • DELETE /api/projects/:id - remove a project

categories

  • GET /api/categories - category search
  • GET /api/categories/:id - returns a category

backings

  • GET /api/backings/:id - returns a backing
  • POST /api/backings - creates a backing
  • DELETE /api/backings/:id - remove a backing

rewards

  • GET /api/rewards - returns rewards for a project
  • GET /api/rewards/:id - returns a reward
  • POST /api/rewards - creates a reward
  • PATCH /api/rewards/:id - edit a reward
  • DELETE /api/rewards/:id - remove a reward

project_categories

  • GET /api/project_categories/:id - returns a project's categories
  • POST /api/project_categories - creates categories for a project
  • DELETE /api/project_categories/:id - remove categories for a project

comments

  • POST /api/comments - creates a comment
  • PATCH /api/comments/:id - edit a comment
  • DELETE /api/comments/:id - remove a comment

likes

  • POST /api/likes - like a project
  • DELETE /api/likes/:id - unlike a project
Clone this wiki locally