name = Environment Overlay Example
description = Select a target environment without editing requests.
$ API_ORIGIN = https://lorem-api.com/api
$ CLIENT_ID = hen-cli
$ AUDIENCE = public
$ USER_ID = abc1234
env local
$ API_ORIGIN = https://lorem-api.com/api
$ CLIENT_ID = hen-local
$ AUDIENCE = local
$ USER_ID = local-demo-user
env staging
$ API_ORIGIN = https://lorem-api.com/api
$ AUDIENCE = staging
$ USER_ID = staging-demo-user
---
Get profile
GET {{ API_ORIGIN }}/user/{{ USER_ID }}
* X-Client-Id = {{ CLIENT_ID }}
* X-Audience = {{ AUDIENCE }}
# Profile request succeeds
^ & status == 200
# Returns the selected environment's user id
^ & body.id == $USER_ID