GET api/rating/books

V2 - This method retrieves all books with a rating for the currently logged in user or child.

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of BookRating
NameDescriptionTypeAdditional 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
This is an integer value ranging from 0 to 5.

integer

Range: inclusive between 0 and 5

Response Formats

application/json, text/json

Sample:
[
  {
    "UserID": "67d32ddb-1547-4ad1-8f4c-cddcc69df8b2",
    "BookID": 2,
    "Rating": 3
  },
  {
    "UserID": "67d32ddb-1547-4ad1-8f4c-cddcc69df8b2",
    "BookID": 2,
    "Rating": 3
  }
]

text/javascript

Sample:
[{"UserID":"67d32ddb-1547-4ad1-8f4c-cddcc69df8b2","BookID":2,"Rating":3},{"UserID":"67d32ddb-1547-4ad1-8f4c-cddcc69df8b2","BookID":2,"Rating":3}]

application/xml, text/xml

Sample:
<ArrayOfBookRating xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Yindo.DAL.Types">
  <BookRating>
    <BookID>2</BookID>
    <Rating>3</Rating>
    <UserID>67d32ddb-1547-4ad1-8f4c-cddcc69df8b2</UserID>
  </BookRating>
  <BookRating>
    <BookID>2</BookID>
    <Rating>3</Rating>
    <UserID>67d32ddb-1547-4ad1-8f4c-cddcc69df8b2</UserID>
  </BookRating>
</ArrayOfBookRating>