Forum Discussion
sneakypanda
Nov 09, 2024Copper Contributor
RestApiPoller Paging Question
Hi,
RestApiPoller Paging question from setting up a new Codeless Connector against one API. I'm currently polling this API with an Azure function and would like to cut it over to CCP.
The API supports iterating through pages via querying it with pageNumber and pageSize parameters. For example, I can query pageNumber=1, pageNumber=2 and so forth.
The API returns a pageCount value as part of a successful response. There is no next page or next link in the response. I can't see anything in the NextPageToken section of the API on how to handle this. Any suggestions?
API is called by sending a POST with the following in the body.
{
"interval": "",
"pageNumber": 0,
"pageSize": 0
}Successful response received is:
{
"data": [
],
"pageSize": 0,
"pageNumber": 0,
"total": 0,
"pageCount": 0
}
No RepliesBe the first to reply