Using ‘page’ and ‘per_page’ : Only object that we can refer for calculating next url is response in Saviynt. So we cannot iterate by incrementing ‘page’ value that we pass in request parameter.
Has anyone faced this issue? Any suggestions will help.
In that case, you will receive an array of objects as a response.
If you are making API calls without knowing the page, you can, from the initial call, store the page number in the database’s (key-value storage).
Make a condition that if the length of the response is greater than zero, navigate to the next page by calling the same function recursively until the response returns empty, and update the database.