0
votes

I have created an API in Azure API Management to get data from a backend API.

The result from the backend API is paged, including a 'next' url in the response which must be used for the next request.

How to handle this 'next' url, in order to concatenate all paged responses and return the total of all paginated responses as one single response through Azure APIM?

1

1 Answers

0
votes

That would be quite complex policy, but could be done by combining retry and send-request. In short keep retrying request every time with next url and concatenating results as long as there is next link in response.