We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b79f9a3 commit fb6b96cCopy full SHA for fb6b96c
examples/star-wars-homeworld.yaml
@@ -0,0 +1,33 @@
1
+# yaml-language-server: $schema=https://serverlessworkflow.io/schemas/1.0.0-alpha2/workflow.yaml
2
+document:
3
+ dsl: 1.0.0-alpha2
4
+ namespace: examples
5
+ name: star-wars-homeplanet
6
+ version: 1.0.0-alpha2
7
+input:
8
+ schema:
9
+ format: json
10
+ document:
11
+ type: object
12
+ required:
13
+ - id
14
+ properties:
15
+ id:
16
+ type: integer
17
+ description: The id of the star wars character to get
18
+ minimum: 1
19
+do:
20
+ - getStarWarsCharacter:
21
+ call: http
22
+ with:
23
+ method: get
24
+ endpoint: https://swapi.dev/api/people/{id}
25
+ output: response
26
+ export:
27
+ as:
28
+ homeworld: ${ .content.homeworld }
29
+ - getStarWarsHomeworld:
30
31
32
33
+ endpoint: ${ $context.homeworld }
0 commit comments