User Facing Routes - ARGON90/BadReads Wiki

Users

  • A new or logged out user may sign up, log in, and log out.
    • Sign-up: GET/POST /signup
    • Log-in: GET/POST /login

Books

  • Get all books and book details.
    • All: GET /books
    • One: GET /books/:book_id
  • A logged in user may get, create, update, and delete a book.
    • User: GET /my-books
    • Create/Update/Delete: POST/PUT/DELETE /my-books

Bookshelves

  • Get user bookshelves and get books in bookshelves.
    • GET /my-bookshelves
  • A logged in user may create, update, and delete a custom bookshelf. Also, add and remove books in bookshelves.
    • Create/Update/Delete: POST/PUT/DELETE /my-bookshelves

Reviews

  • Get all reviews that belong to a specific book.
    • GET /books/:book_id
  • A logged in user may create and delete a Review.
    • Create/Delete/Update: POST/DELETE/PUT /books/:book_id