Skip to content

API Documentation

Arnold Cabang Jr edited this page Aug 23, 2021 · 1 revision

API-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.

REVIEW LIKES

A logged in user may post a like to a review as well as ‘unlike’ it.

  • POST /reviews/:reviewId/likes

SHELVES

A logged in user can add-to, edit, or delete to/from their personal Shelves with visible confirmation without causing a refresh/redirect.

  • PUT /shelves/:shelvesId

  • DELETE /shelves/:shelvesId

BONUS: REVIEWS

A logged in user may post a review and update/delete one of their own reviews, removing it from the list of visible reviews without causing a refresh/redirect.

  • PUT /reviews/:reviewId

  • DELETE /reviews/:reviewId

Clone this wiki locally