-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
jmthorn edited this page Apr 5, 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 edit their own account information.
Edit:
- PUT /users/:id
-
A logged in user can add a Book to their Bookshelf by using a dropdown of existing Bookshelves.
Edit:
- PUT /bookshelves/:id
-
A logged in user may delete one of their own reviews, removing it from the list of visible reviews without causing a refresh/redirect.
Create:
- POST /books/:id/reviews
Edit:
- PUT /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".
Create:
- POST /books/:id/readstatus/:id
Edit:
- PUT /books/:id/readstatus/:id
-
A logged in user may tag a book, adding or removing it from a bookshelf without causing a refresh/redirect.
Create:
- POST /books/:id/tags
Delete:
- DELETE /books/:id/tags/:id