Skip to content

API Documentation

Lauren Gus edited this page May 7, 2021 · 6 revisions

API-Routes

Answers

POST

  • /questions/:id/answers

PUT (update an answer)

  • /answers/:id

DELETE (to remove answer)

  • /answers/:id

Questions

POST (searched questions)

  • /questions

POST (question form)

  • /questions/form

PUT (update question)

  • /questions/:id

Question-Votes

POST (to create new vote--up vs down represented by a Boolean)

  • /questions/:id/votes

DELETE (to remove vote)

  • /questions/:id/votes

Answer-Votes

POST (to create new vote)

  • /answers/:id/votes

DELETE (to remove vote)

  • /answers/:id/votes
Clone this wiki locally