summaryrefslogtreecommitdiffstats
path: root/SPECIFICATION.md
diff options
context:
space:
mode:
authorMateu Aguiló Bosch2017-09-16 03:46:14 +0200
committerMateu Aguiló Bosch2017-09-16 05:07:23 +0200
commit45ed3e84aa787657a9d6412422c45a237164c5f4 (patch)
tree55628fd27b68831e5378eadc90db720ff8126ef2 /SPECIFICATION.md
parent235bc9fbfd129b15b17fae1113742f8251297d70 (diff)
feat(Blueprint): Allow multiple dependencies
Diffstat (limited to 'SPECIFICATION.md')
-rw-r--r--SPECIFICATION.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/SPECIFICATION.md b/SPECIFICATION.md
index fc6bf07..f66aae2 100644
--- a/SPECIFICATION.md
+++ b/SPECIFICATION.md
@@ -97,10 +97,10 @@ properties:
* `body`: the serialized content of the body for the subrequest.
* `headers`: an object of key value pairs. Each key **MUST** be interpreted as
a header name for the subrequest, and the values as the header value.
- * `waitFor`: contains the request ID from another request. Indicates that the
- current subrequest depends on the other subrequest. When this property is
- present, the that particular subrequest cannot be processed until the
- referenced request has generated a response.
+ * `waitFor`: contains the array of request IDs from another request. Indicates
+ that the current subrequest depends on the other subrequest. When this
+ property is present, the that particular subrequest cannot be processed
+ until the referenced request has generated a response.
### Sequential requests
Many times it is necessary to use the information of previous requests in order
@@ -166,7 +166,7 @@ the request blueprint to express dependencies.
},
{
"requestId": "req-2",
- "waitFor": "req-1",
+ "waitFor": ["req-1"],
"uri": "/menus/{{req-1.body@$.rels.meny.id}}",
"action": "view",
"headers": {
@@ -175,7 +175,7 @@ the request blueprint to express dependencies.
},
{
"requestId": "req-3",
- "waitFor": "req-2",
+ "waitFor": ["req-2"],
"uri": "/menus/{{req-1.body@$.rels.meny.id}}/courses/{{req-2.body@$.mainCourse.id}}",
"action": "view",
"headers": {