Example: Next page token paging that uses a query parameter returned in a response header
- Last Updated: January 23, 2024
- 1 minute read
- DataDirect Connectors
- ODBC
- Autonomous Rest Connector 8.0
- Documentation
Example: Next page token paging that uses a query parameter returned in a response header
Next specifies
the query parameter value page_2. Next=page_2
If the query parameter argument is next_page, the driver would send
the following query parameter in a request to retrieve the next page of results.
next_page=page_2
In this scenario, to configure paging, you need to specify the
nextPageResponseHeader and nextPageParameter parameters
in your paging entry. The nextPageResponseHeader configures the driver to
use the value of the specified header as the value of the query parameter, while
nextPageParameter specifies the query parameter argument to be used to
retrieve the next page of results. The following is example of configuring paging using a
query parameter passed in a response. "#pageSizeParameter": "limit",
"#maximumPageSize": 100,
"#nextPageResponseHeader": "Next",
"#nextPageParameter": "next_page"