-
Notifications
You must be signed in to change notification settings - Fork 1
API Routes
Adam Guan edited this page Nov 16, 2021
·
1 revision
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 create/update/delete/search one of their own Decks, creating/updating/removing/searching it to/from the list of visible Decks without causing a refresh/redirect.
- add a deck:
POST /decks/
- update a deck:
PUT /decks/:deck_id
- delete a deck:
DELETE /decks/:deck_id
- search deck:
POST /decks/search
A logged in user may create/update/delete/search one of their own Cards, creating/updating/removing/searching it/them to/from the list of visible Cards without causing a refresh/redirect.
- add a card:
POST /cards/
- update a card:
PUT /cards/:card_id
- delete a card:
DELETE /cards/:card_id
A logged in user may create/update/delete/search one of their own Images, creating/updating/removing/searching it/them to/from the list of visible Images without causing a refresh/redirect.
- add an an image:
POST /images/
- update an image:
PUT /images/:image_id
- delete an image:
DELETE /images/:image_id