added ratings and updated ebook struct
This commit is contained in:
@@ -83,6 +83,13 @@ The application uses Go HTML templates for server-side rendering with HTMX for d
|
||||
- `GET /api/ebooks/:id/progress` - Get reading progress
|
||||
- `PUT /api/ebooks/:id/progress` - Update reading progress
|
||||
|
||||
### Ratings (Protected)
|
||||
- `GET /api/ebooks/:id/rating` - Get user's rating for ebook
|
||||
- `POST /api/ebooks/:id/rating` - Create or update ebook rating
|
||||
- `PUT /api/ebooks/:id/rating` - Create or update ebook rating
|
||||
- `DELETE /api/ebooks/:id/rating` - Delete user's rating
|
||||
- `GET /api/ebooks/:id/ratings` - Get all ratings for ebook
|
||||
|
||||
## API Testing
|
||||
|
||||
Use the included Bruno collection in the `bruno/` directory for testing the API:
|
||||
|
||||
Reference in New Issue
Block a user