Example: Next page token paging that uses a query parameter 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 a query parameter returned in a response body
next, that 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_2To configure paging
in this scenario, you need to specify the
nextPageElement and
nextPageParameter parameters in your paging entry. The
nextPageElement configures the driver to use the value of the specified
element in the response body 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,
"#nextPageElement": "next",
"#nextPageParameter": "next_page"