-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
Denise edited this page Feb 15, 2022
·
12 revisions
This web app uses the following API routes to dynamically update the page.
-
An authenticated user may create a new deck and view all decks that they have created without causing a refresh/redirect.
GET /api/decksPOST /api/decks
-
An authenticated user may view, edit, and delete a specific deck that they have created by changing its title or description.
GET /api/decks/:deckIdPUT /api/decks/:deckIdDELETE /api/decks/:deckId
- An authenticated user may create a new card in a deck that they have created. They can also view, edit, and delete a specific card that they have created without causing a refresh/redirect.
GET /api/cards/:cardIdPOST /api/cards/:cardIdPUT /api/cards/:cardIdDELETE /api/cards/:cardId
-
An authenticated user may view all decks that have a specific tag.
GET /api/tags/:tagId
-
When viewing a specific deck, an authenticated user may view all tags associated with that specific deck.
GET /api/decks/:deckId/tags
-
An authenticated user may create new tags on a deck that they have created. They can also delete tags on decks that they have created without causing a refresh/redirect.
POST /api/tags/DELETE /api/tags/:tagId
- An authenticated user may view, add, or remove decks to their
Study Listwithout causing a refresh or redirect.GET /api/user-study-decks/:userIdPOST /api/user-study-decks/:userIdDELETE /api/user-study-decks/:userId
- An authenticated user may view and edit their biography on their profile page without causing a refresh/redirect.
GET /api/:userIdPUT /api/:userId
- An authenticated user may create a new comment on any deck without causing a refresh or redirect. They can also edit and delete any comments that they have created without causing a refresh or redirect. When a user creates, edits, or deletes a comment, the page will update dynamically.
POST /api/comments/:deckIdGET /api/comments/:deckIdPUT /api/comments/:commentId
- When studying a card, an authenticated user may view a card, reveal its answer, and mark it as correct or incorrect without causing a refresh.
GET /api/user-study-card/:idPOST /api/user-study-card/:id