-
Couldn't load subscription status.
- Fork 1
API Documentation
StevenBarnett1 edited this page Aug 20, 2021
·
33 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.
- A logged in user may see their user profile, create a user, edit their information, or delete their account without causing a refreshing/redirect.
POST /api/usersPUT /api/users/:idDELETE /api/users/:id
- A logged in user may see all of the questions posted, add questions, navigate to a specific question, edit a specific question, and delete a specific question without causing a refreshing/redirect.
POST /api/PUT /api/questions/:idDELETE /api/questions/:id
- A logged in user may see all the answers posted to an answer, navigate to a specific answer, add answers to a specific question, edit a specific answer, and delete a specific answer without causing a refreshing/redirect.
POST /api/questions/:questionId/answersPUT /api/answers/:answerIdDELETE /api/answers/:answerId
-
A logged in user may see all the comments posted to an answer, navigate to a specific comment, add comments to a specific answer, edit a specific comment, and delete a specific comment without causing a refreshing/redirect.
POST /api/answers/:answerId/commentsPUT /api/comments/:commentIdDELETE /api/comments/:commentId
- A logged in user may add an upvote to a specific question, change the upvote to a downvote, and delete the upvote without causing a refreshing/redirect.
POST /api/questions/:questionId/votesPUT /api/questions/:questionId/votes/:voteIdDELETE /api/questions/:questionId/votes/:voteId