Get bucket - with variable
POST https://qhiug7xk62.execute-api.eu-central-1.amazonaws.com/default/Bucket
Under the Body tab, use {{key}}
to access the environment variable called key
that we initialized in the preceding request.
Request Body
{"type"=>"get_bucket", "json"=>"{'key': {{key}} }"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
x-api-key | string | ||
Content-Type | string |
RESPONSES
status: OK
[{"productName":"P1","count":1,"active":true,"key":"444511a6-07ed-4245-bc8c-92972f51b2de","id":"d5cdbe0b-62ce-4f36-86a3-c98a3b9a10fc"},{"productName":"P2","count":2,"active":true,"key":"444511a6-07ed-4245-bc8c-92972f51b2de","id":"d9fb7e00-624e-4a71-879c-59a6f18f3685"}]