Skip to content
Josh Earlenbaugh edited this page Nov 21, 2017 · 12 revisions

Here is where a representation of the routes and route-relations lives.


FrontEnd Routes:

  • /login
  • /signup
  • /feed - question feed/homepage/
  • /users/:userId - user profile
  • /questions/new - create a new question
  • /questions/:questionId - question show

API Endpoints:

  • users

    • GET api/user/:id - returns a user
  • questions

    • GET api/questions - returns the question information for the Question Search Feature
    • GET api/questions/:id - returns a question
    • POST api/questions - creates a question
    • PATCH api/questions/:id - edits a question
    • DELETE api/questions/:id - deletes a question
  • answers

    • POST api/answers - creates an answer to a question
    • PATCH api/answers/:id - edits an answer to a question
    • DELETE api/answers/:id - deletes an answer to a question
  • comments

    • POST api/comments - creates a comment to a answer to a question
    • PATCH api/comments/:id - edits a comment to an answer to a question
    • DELETE api/comments/:id - deletes a comment to an answer to a question
Clone this wiki locally