-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
rzh150030 edited this page May 28, 2021
·
4 revisions
This web app uses the following API routes to dynamically update the page to create a single-page-app-like feel for the user for specific features.
##Comments
- A logged-in user may delete or edit one of their own comments, removing it from the list of visible questions without causing a refresh/redirect.
DELETE /comments/:id
PUT /comments/:id
##Upvotes/Downvotes
- A logged-in user may click the upvote or downvote button and it will highlight the button being clicked and update the counter without refreshing the page. Users can only upvote or downvote once, or nullify their vote.
POST /questions/:id/votecount
POST /answers/:id/votecount
PUT /questions/:id/votecount
PUT /answers/:id/votecount