Please be sure you’ve read the docs and API specs before asking for help. Also, please be sure you’ve searched the forum for your answer before you create a new topic.
Hi ,
For a pagination in webservice after rule, I am trying to read the nextpage link in the first page json response and trying to set the new page to be aggregated as next page value from the previous page .
Able to set
String fullURL = requestEndPoint.getFullUrl();
fullURL=newpageslink;
requestEndPoint.setFullUrl(fullURL);
return requestEndpoint;
but My issue is not aggregating with newfullURL.Any input will be helpful
Hi @SrideviJaya
Is there a reason you’re using an after rule instead of the out of the box pagination?
The paging section inside the UI can handle a next page response type pretty easily.
Here is an example one:
TERMINATE_IF $response.nextPageUrl$ == null
$endpoint.fullUrl$ = $response.nextPageUrl$
Thanks, tried but its not working
That was an example, so the JSON markers are likely different in your API. Can you provide us a sample response from your API so we can provide a better answer?
nextpage under pagination
Try this:
TERMINATE_IF $response.pagination.nextPage$ == null
$endpoint.fullUrl$ = $response.pagination.nextPage$
Thanks for responding, working
Good to hear! If my post resolves your issue, please mark it as the solution.