name = Request Reliability
description = Use preamble defaults plus request overrides on a dependency-driven mock export flow.
$ API_ORIGIN = https://lorem-api.com/api
timeout = 30s
poll_every = 1s
---
Create export
POST {{ API_ORIGIN }}/echo
~~~json
{
"jobId": "export-orders-csv",
"format": "csv",
"resource": "orders"
}
~~~
^ & status == 200
& body.jobId -> $JOB_ID
---
Wait for export
> requires: Create export
POST {{ API_ORIGIN }}/echo
timeout = 5s
poll_until = 2m
poll_every = 2s
~~~json
{
"jobId": "{{ JOB_ID }}",
"state": "completed",
"downloadUrl": "https://lorem-api.com/api/articles?count=1"
}
~~~
^ & status == 200
^ & body.state == "completed"
^ & body.downloadUrl != null