# Pagination

The endpoints /parties, /frameworks and /dataspaces contain pagination attributes. These attributes work as follows.

## Pagination request attributes

As a URL query parameter, the following can be provided:

* `page`\
  **Integer**. Requests to return a specific page.
* `pageSize`\
  **Integer**. Sets the page size (number of items per page).

Example:

* `{url}/dataspaces?page=2&size=20`\
  requests the second page with a page size of 20.

## Pagination response attributes

The response is structured as follows:

* JSON body containing the base64 encoded JWT. Inside that (decoded) JWT:
  * A `partiesInfo`, `dataspacesInfo` or `frameworksInfo` object. Inside that info object:
    * `currentPage`\
      Integer. Number of the returned page.
    * `pageSize`\
      Integer. Number of items per page.
    * `totalPages`\
      Integer. Total number of pages available.
    * `totalCount`\
      Integer. Total number of items available.
    * `count`\
      Integer. Number of items returned in the current response (could be different then page size for the last page).
