| Endpoint | Method | Description |
|---|
| /books | GET | Retrieve a list of all books in the library |
| /books/{id} | GET | Retrieve a specific book by its ID |
| /books | POST | Add a new book to the library |
| /books/{id} | PUT | Update a specific book by its ID |
| /books/{id} | DELETE | Remove a specific book by its ID |
/users | GET | Retrieve a list of all users
/users/{id} | GET | Retrieve a specific user by their ID
/users | POST | Add a new user to the system
/users/{id} | PUT | Update a specific user by their ID
/users/{id} | DELETE | Remove a specific user by their ID
/loans | GET | Retrieve a list of all current loans
/loans/{id} | GET | Retrieve a specific loan by its ID
/loans | POST | Create a new loan for a book and a user
/loans/{id} | PUT | Update a specific loan (e.g. mark as returned)
/loans/{id} | DELETE | Remove a specific loan
/reviews | GET | Retrieve a list of all reviews for the library
/reviews/{id} | GET | Retrieve a specific review by its ID
/reviews | POST | Add a new review for a book
/reviews/{id} | PUT | Update a specific review by its ID
/reviews/{id} | DELETE | Remove a specific review by its ID
/wishlists | GET | Retrieve a list of all wishlists
/wishlists/{id} | GET | Retrieve a specific wishlist by its ID
/wishlists | POST | Create a new wishlist for a user
/wishlists/{id} | PUT | Update a specific wishlist by its ID
/wishlists/{id} | DELETE | Remove a specific wishlist by its ID
/recommendations | GET | Retrieve a list of book recommendations for a user
/recommendations/{id} | GET | Retrieve a specific set of recommendations by its ID
/recommendations | POST | Create a new set of recommendations for a user
/recommendations/{id} | PUT | Update a specific set of recommendations by its ID
/recommendations/{id} | DELETE | Remove a specific set of recommendations by its ID
/genres | GET | Retrieve a list of all genres
/genres/{id} | GET | Retrieve a specific genre by its ID
/genres | POST | Add a new genre to the library
/genres/{id} | PUT | Update a specific genre by its ID
/genres/{id} | DELETE | Remove a specific genre by its ID
/publishers | GET | Retrieve a list of all publishers
/publishers/{id} | GET | Retrieve a specific publisher by its ID
/publishers | POST | Add a new publisher to the library
/publishers/{id} | PUT | Update a specific publisher by its ID
/publishers/{id} | DELETE | Remove a specific publisher by its ID
Note:
- In the above table, {id} is a placeholder for the specific ID of the resource being