Backend Routes - mboo1/Quora-Proj GitHub Wiki
HTML
GET / Static PagesController#root
API Endpoints
users
GET /api/users - returns the relevant user information
POST /api/users - allows user to sign up by adding them to database
session
POST /api/session - log in
DELETE /api/session - log out
questions
GET /api/questions - returns questions (filtered by topic)
GET /api/questions/:id - returns question
POST /api/questions - creates a question
PATCH /api/questions/:id - edit a question
DELETE /api/questions/:id - remove a question
answers
GET /api/answers return answers (for a particular question)
POST /api/answers - creates an answer
PATCH /api/answers/:id - edit an answer
DELETE /api/answers/:id - remove an answer