Open jgroom33 opened 5 years ago
Another possible implementation:
version: 2
requests:
call1:
request:
url: https://jsonplaceholder.typicode.com/posts
method: GET
call1Looper:
loop: call1.content # This is an array response from call1
request:
url: https://jsonplaceholder.typicode.com/posts/<$ this.id $>
method: GET
This would be implemented similar to:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_loops.html#standard-loops
third option:
version: 2
requests:
call1:
request:
url: https://jsonplaceholder.typicode.com/posts
method: GET
call1.content.forEach(item):
request:
url: https://jsonplaceholder.typicode.com/posts/<$ item.id $>
method: GET
Possible implementation: