-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
Jonathan Chan edited this page Apr 2, 2021
·
31 revisions
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 delete one of their own reviews, removing it from the list of visible reviews without causing a refresh/redirect. Creating:
- POST /books/:id/reviews
Edit: (the reviews or the stars)
- PUT/PATCH /books/:id/reviews/:id
Delete:
- `DELETE /books/:id/reviews/:id
- A logged in user can add a status to indicate whether they are "Read", "Currently Reading" or "Want to Read" (default).
- POST /readStatus/
- /PUT/PATCH? /readStatus/:id
- A logged in user can add/remove a Book to their Bookshelf on the specific book's page via a custom category or through a Tag(Want to Read/Genre/etc).
- 'POST /book-to-books/
- 'DELETE /book-to-books/:id'
- 'PUT/PATCH /book-to-books/:id'