I am working on a custom app of Bigg-Commerce and wanted to implement a module in which I will calls two APIs first is to retrieve the list of all products for specified store and then want to run next API call as many time as their are products in the first API’s response.
Current API call :
[
{
“url”: “/catalog/products”,
“method”: “GET”,
“headers”: {
“X-Auth-Token”: “{{parameters.authToken}}”
},
“response”: {
“output”: “{{body}}”,
“temp”: “{{body.data}}”,
“limit”: “{{parameters.limit}}”
},
“pagination”: {
“qs”: {
“page”: “{{pagination.page}}”
}
}
},
{
“url”: “/catalog/products/{{item.id}}/images”,
“headers”: {
“X-Auth-Token”: “{{parameters.authToken}}”
},
“repeat”: {
“condition”: “{{length(temp)}}”,
“delay”: 20000,
“limit”: 100
},
“response”: {
“iterate” : “{{temp}}”
}
}
]
Kindly please tell me what needs to be corrected.