GET api/rating/book/{ean}
V2 - This method retrieves the rating for the specified book for the currently logged in user or child.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
ean |
The EAN for which to retrieve the rating. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
BookRatingName | Description | Type | Additional information |
---|---|---|---|
UserID |
The UserID references to the Main (often parent) account for which this rating is registered. |
globally unique identifier |
None. |
BookID |
The bookID for this rating |
integer |
None. |
Rating |
The actual rating |
integer |
Range: inclusive between 0 and 5 |
Response Formats
application/json, text/json
Sample:
{ "UserID": "ce7b3e1a-b5a8-423d-b6d8-1464b762e5b6", "BookID": 2, "Rating": 3 }
text/javascript
Sample:
{"UserID":"ce7b3e1a-b5a8-423d-b6d8-1464b762e5b6","BookID":2,"Rating":3}
application/xml, text/xml
Sample:
<BookRating xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yindo.DAL.Types"> <BookID>2</BookID> <Rating>3</Rating> <UserID>ce7b3e1a-b5a8-423d-b6d8-1464b762e5b6</UserID> </BookRating>