Goal:
To fetch data from a dummy API endpoint in batches of 600 records using a repeater, parse the response, and aggregate the data into a text format. I want to stop the repeater once an empty array is returned from the API endpoint (basically from http module).
Screenshots:
Repeater Configuration:
- Configured a repeater with an initial value of 0, repeating 5 times with a step of 600.
HTTP Module Configuration:
- Set up an HTTP module to make GET requests to the dummy API endpoint with a query parameter to skip records based on the step value.
Iterator Configuration:
- Utilized an iterator to map over the array of quotes in the API response.
Text Aggregator Configuration:
- Used a Text Aggregator tool to aggregate the data into a text format, including the ID, quote, and author.
Issues:
I need assistance in stopping the repeater or HTTP module once an empty array is returned from the API endpoint.