-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
DanielLaV edited this page Feb 4, 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.
READ /api/tags/:tagId
-
An authenticated user may create new tags on a deck that they have created. They can also edit and delete tags on decks that they have created without causing a refresh/redirect.
POST /api/tags/:tagIdPUT /api/tags/:tagIdDELETE /api/tags/:tagId
- An authenticated user may mark or unmark a deck as
To Studywithout causing a refresh.POST /api/tostudy/:deckId
- 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
- 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