Retrieves the collection of Review resources.

GET /reviews

Retrieves the collection of Review resources.

Query parameters

  • page integer

    The collection page number

    Default value is 1.

Responses

  • Review collection

    Hide response attributes Show response attributes object
    • hydra:member array[object] Required
      Hide hydra:member attributes Show hydra:member attributes object

      A review of a book.

      • @context string | object

        One of:
      • @id string
      • @type string
      • id integer
      • rating integer
      • body string
      • author string
      • publicationDate string(date-time)
      • book string(iri-reference) | null
    • hydra:totalItems integer

      Minimum value is 0.

    • hydra:view object
      Hide hydra:view attributes Show hydra:view attributes object
      • @id string(iri-reference)
      • @type string
      • hydra:first string(iri-reference)
      • hydra:last string(iri-reference)
      • hydra:previous string(iri-reference)
      • hydra:next string(iri-reference)
    Hide response attributes Show response attributes object
    • id integer
    • rating integer
    • body string
    • author string
    • publicationDate string(date-time)
    • book string(iri-reference) | null
    Hide response attributes Show response attributes object
    • id integer
    • rating integer
    • body string
    • author string
    • publicationDate string(date-time)
    • book string(iri-reference) | null
GET /reviews
curl \
 --request GET 'http://api.example.com/reviews'
Response examples (200)
{
  "hydra:member": [
    {
      "@context": "string",
      "@id": "string",
      "@type": "string",
      "id": 42,
      "rating": 42,
      "body": "string",
      "author": "string",
      "publicationDate": "2026-05-04T09:42:00Z",
      "book": "string"
    }
  ],
  "hydra:totalItems": 42,
  "hydra:view": {
    "@id": "string",
    "type": "string",
    "hydra:first": "string",
    "hydra:last": "string",
    "hydra:previous": "string",
    "hydra:next": "string"
  },
  "hydra:search": {
    "@type": "string",
    "hydra:template": "string",
    "hydra:variableRepresentation": "string",
    "hydra:mapping": [
      {
        "@type": "string",
        "variable": "string",
        "property": "string",
        "required": true
      }
    ]
  }
}
Response examples (200)
[
  {
    "id": 42,
    "rating": 42,
    "body": "string",
    "author": "string",
    "publicationDate": "2026-05-04T09:42:00Z",
    "book": "string"
  }
]