API Documentation - OndreWilliams/TownSquare GitHub Wiki
API Routes
This web app uses these API routes to create an application that feels dynamic and efficient for the user to not hit a direct refresh to visibly see changes made through certain interactions
Questions
A logged in user may delete one of their own questions by removing it from the list of visible questions without doing a hard refresh.
This would be done asynchronously.
DELETE /api/questions/:id
Answers
A logged in user may delete one of their own answers to a question by removing it from the list of visible responses without doing a hard refresh.
This would be done asynchronously.
DELETE /api/answers/:id
A logged in user may upvote or downvote an answer with visible confirmation (through a tally) without causing a refresh/redirect.