added ratings and updated ebook struct
This commit is contained in:
@@ -28,6 +28,12 @@ This directory contains Bruno collection for testing the Bookmann API with compr
|
||||
- **Get Reading Progress**: GET /api/ebooks/:id/progress - User's progress
|
||||
- **Update Reading Progress**: PUT /api/ebooks/:id/progress - Update progress
|
||||
|
||||
### Ratings (Protected - JWT Required)
|
||||
- **Get Ebook Rating**: GET /api/ebooks/:id/rating - User's rating for ebook
|
||||
- **Create/Update Rating**: POST /api/ebooks/:id/rating - Rate ebook (1-5 stars)
|
||||
- **Delete Rating**: DELETE /api/ebooks/:id/rating - Remove user's rating
|
||||
- **Get All Ratings**: GET /api/ebooks/:id/ratings - All ratings for ebook
|
||||
|
||||
## Documentation Features
|
||||
|
||||
Each request includes:
|
||||
|
||||
Reference in New Issue
Block a user