aviowiki
  • Introduction
  • Authentication
    • Users
    • API Tokens
    • Authorisation
  • Conventions
    • Data format
    • aviowiki IDs
    • Pagination
  • Errors
  • Reward Points
  • Open Data
    • Introduction
    • Definition
  • Data Models
    • Airport
    • Authority
    • Availability
    • Aircraft Position
    • Coordinates
    • Region
    • Country
    • Governing District
    • Runway
    • Provider
    • Generic Product
    • Fuel Product
    • Fuel Fee
    • Webhook
    • Error
    • Operational Note
      • Airport Operational Note
      • Country Operational Note
  • Free Endpoints
    • Limitations
    • Free airport endpoints
      • Airport data
      • Searching airports
  • Authenticated Endpoints
    • Airport endpoints
      • Searching airports
      • Airport data
      • Authorities at an airport
      • Availability of an airport
        • Aerodrome Rescue and Fire Fighting availaibility
        • Air Traffic Control availability
        • Customs, Immigration and Quarantine facilities availability
        • Movement availability
      • Runways at an airport
      • Providers at an airport
      • Weather at an airport
      • Sun times at an airport
      • Operational notes at an airport
    • Aircraft endpoints
    • Aircraft position endpoints
    • Flight endpoints
    • Runway endpoints
      • Runway data
    • Provider endpoints
      • Provider data
      • Availability of a provider
      • Country of a provider
      • Pictures of a provider
      • Logo of a provider
      • Products of a provider
      • Fuel products of a provider
    • Operational Note endpoints
      • Operational Note data
    • Retrieve aircraft position
  • Release log
Powered by GitBook
On this page

Was this helpful?

  1. Conventions

Pagination

Many endpoints in aviowiki return a large list of results. To facilitate navigation through these, as well as providing a mechanism for lazy loading, such endpoints return a Paged List.

Paged Lists divide the results into pages. Each page has a number, which is its index starting from 0, and a certain size, which is the number of results in that page.

To simplify calculations and evaluation of Paged Lists, the totalPages and totalResults properties are also provided. Respectively they indicate how many pages in total exist and how many results are available.

It is worth noting that the number of the last page is always equal to totalPage - 1. This is because number starts counting from 0.

The list of results in a Paged List is contained in the property content.

Example

{
  "page": {
    "number": 0,
    "size": 10,
    "totalPages": 3,
    "totalResults": 26
  },
  "content": [...]
}
Previousaviowiki IDsNextErrors

Last updated 3 years ago

Was this helpful?