Skip to content

API Routes

Adam Guan edited this page Nov 16, 2021 · 1 revision

API Routes (Backend routes):

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.

Decks

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

Cards

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

Images

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
Clone this wiki locally