Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ body:
"title": "Mr",
"email": "john@exampleco.com",
"phone": "563-920-4264",
"type": "technician",
"meta": {
"external_ref": "john-doe"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ method: GET

pathVariables:
- key: id
value: "{{label_subject_id}}"
value: "{{order_id}}"
description: The order, waypoint or entity to render a label for, matching `type` below.

queryParams:
format: "stream"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@ url: "{{base_url}}/{{namespace}}/order-configs"
method: GET
headers:
Accept: application/json
scripts:
- type: afterResponse
code: |-
// Retrieve an Order Config addresses {{order_config_id}}. It used to set that
// itself in its own afterResponse, which cannot work — the value has to exist
// before the request is sent. This listing runs first, so it is the natural source.
var json_response = pm.response.json();

if (Array.isArray(json_response) && json_response.length) {
pm.environment.set("order_config_id", json_response[0].id);
}
language: text/javascript

order: 1000
Loading