This API allows you to Review a book where, you may leave Description of your Review, along with a mandatory rating between 0-10 Inclusive.
The API is available at localhost:8080/api/v1/bookie
GET /
Returns all Stored Reviews within the Database.
POST /
,
Along with Submitted JSON Content-Type including Review in Raw Data Format.
Allows you to submit a new Review.
The request body needs to be in JSON format and include the following properties:
bookTitle
- Integer - RequiredbookReview
- String - OptionalbookRating
- Integer - Required
Example
POST '/'
{
"bookTitle": "Harry Potter and the Sorcerer's Stone",
"bookReview": "7"
}
The response body will contain the Status Code along with No Message.
Put /studentID?{key being Updated = Updated Value}
ID-Type: Long
Allows you to Update a review and change only the Review and/or the Rating.
DELETE /studentId
Allows you to Delete a review with Student ID: {studentId
}
GET /{bookTitle}
Returns Book Rating Average for Specified Book Title