Retrieves the collection of Book resources.

GET /books

Retrieves the collection of Book resources.

Query parameters

  • page integer

    The collection page number

    Default value is 1.

Responses

  • Book collection

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

      A book.

      • @context string | object

        One of:
      • @id string
      • @type string
      • id integer
      • isbn string | null
      • title string
      • description string
      • author string
      • publicationDate string(date-time)
      • reviews array[string(iri-reference)]
    • 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
    • isbn string | null
    • title string
    • description string
    • author string
    • publicationDate string(date-time)
    • reviews array[string(iri-reference)]
    Hide response attributes Show response attributes object
    • id integer
    • isbn string | null
    • title string
    • description string
    • author string
    • publicationDate string(date-time)
    • reviews array[string(iri-reference)]
GET /books
curl \
 --request GET 'http://api.example.com/books'
Response examples (200)
{
  "hydra:member": [
    {
      "@context": "string",
      "@id": "string",
      "@type": "string",
      "id": 42,
      "isbn": "string",
      "title": "string",
      "description": "string",
      "author": "string",
      "publicationDate": "2026-05-04T09:42:00Z",
      "reviews": [
        "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,
    "isbn": "string",
    "title": "string",
    "description": "string",
    "author": "string",
    "publicationDate": "2026-05-04T09:42:00Z",
    "reviews": [
      "string"
    ]
  }
]