Example: Next page token paging that uses a URL returned in a response body
- Last Updated: January 23, 2024
- 1 minute read
- DataDirect Connectors
- ODBC
- Autonomous Rest Connector 8.0
- Documentation
Some services employ a paging mechanism that returns the URL for the next page of results
in response bodies. For example, an element in a response body that specifies the URL takes
the following form:
"next": "https://example.com/myEndpoint?nextpage=2"In this scenario, to configure paging, specify the name of the element in the response body
using the
nextPageElement parameter. For example, the following entry
configures the driver to use the value of the next element in the response
body to retrieve the next page in the
results:"#pageSizeParameter": "limit",
"#maximumPageSize": 100,
"#nextPageElement": "next"