I am attempting to setup pagination for a RestAPI. The following is the example JSON. I have specified: $.data[*] as the data location. I have setup the following variables to be included in the URL: page_value, per_page.
I have set the Stop According To: Page Size and per page {per_page}. In testing the api calls are not stopping. Rather the calls continue to loop. As per the json below there is a total_pages value. Can i set a rule to break if page_value = total_pages
{
“data”: [
],
“meta”: {
“pagination”: {
“total”: 2,
“count”: 2,
“per_page”: 100,
“current_page”: 1,
“total_pages”: 1,
“links”: {}
}
}
}