PaginationLink

A single navigation link in a Laravel-style paginator response.

AnimalsCatsTriviaPublic APIsCommunityNo AuthenticationREST

Properties

Name Type Description
url stringnull Target URL of the link, or null for disabled controls.
label string Display label (page number, Previous, Next, or ...).
active boolean Whether this link represents the current page.
View JSON Schema on GitHub

JSON Schema

cat-facts-catfact-pagination-link-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cat-facts-catfact/refs/heads/main/json-schema/cat-facts-catfact-pagination-link-schema.json",
  "title": "PaginationLink",
  "description": "A single navigation link in a Laravel-style paginator response.",
  "type": "object",
  "properties": {
    "url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Target URL of the link, or null for disabled controls.",
      "example": "https://catfact.ninja/facts?page=2"
    },
    "label": {
      "type": "string",
      "description": "Display label (page number, Previous, Next, or ...).",
      "example": "2"
    },
    "active": {
      "type": "boolean",
      "description": "Whether this link represents the current page.",
      "example": false
    }
  }
}