Example: Next page token paging that uses an HTTP header returned in a response body
- Last Updated: January 23, 2024
- 1 minute read
- DataDirect Connectors
- JDBC
- Autonomous REST Connector 6.0
- Documentation
Example: Next page token paging that uses an HTTP header returned in a response body
next, that specifies the HTTP-header value argument,
page_2, to be passed in the next request. "next": "page_2"
If the HTTP header used to return the next page of a result is
next_page, the driver would send the following HTTP header argument in a
request to retrieve the next page of results.
next_page=page_2
When configuring your paging entry for this mechanism, you need to specify the
nextPageElement and nextPageRequestHeader parameters.
The nextPageElement specifies the element in the response body that
contains the value of the HTTP header, while nextPageRequestHeader
specifies the HTTP header 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,
"#nextPageElement": "next",
"#nextPageRequestHeader": "next_page"