Routes - Percapio/Codex GitHub Wiki

FrontEnd Routes

  • /login
  • /signup
  • /books -> DiscoverBooks
  • /books/:id -> BookReview, BookRatings, CurrentReading, WantToRead
  • /bookshelf/:id -> Bookshelf
  • /books/new -> AddBook w/Tags
  • /books/reviews/ -> Reviews
  • /books/reviews/new -> Add review

API Endpoints

Users

  • POST /api/users -> sign up

Books

  • GET /api/books -> returns book feed
  • GET /api/books/:id -> returns specific book

Bookshelf

  • POST /api/bookshelf -> creates a specific bookshelf
  • GET /api/bookshelf/:id -> returns specific bookshelf
  • PATCH /api/bookshelf/:id -> edits a specific bookshelf
  • DELETE /api/bookshelf/:id -> deletes a specific bookshelf

Review

  • POST /api/books/review/ -> creates a specific review
  • PATCH /api/books/review/:id -> edits a specific review
  • DELETE /api/books/review/:id -> deletes a specific review