Options for pagination in API requests to the Nevermined API.

Constructors

Properties

Methods

Constructors

Properties

offset: number = 10

The number of items per page. Default is 10.

page: number = 1

The page number to retrieve. Default is 1.

sortBy?: string

The field to sort the results by. If not provided, the default sorting defined by the API will be applied.

sortOrder: "asc" | "desc" = 'desc'

The order in which to sort the results. Default is 'desc' (descending).

Methods

  • It returns a string representation of the pagination options

    Returns string

    A string representation of the pagination options as URL query parameters. This can be used to append to API requests for pagination.