@@ -15,14 +15,13 @@ Feature: Call Task
15
15
namespace: default
16
16
name: http-call-with-content-output
17
17
do:
18
- getFirstAvailablePet:
19
- call: http
20
- with:
21
- method: get
22
- endpoint:
23
- uri: https://petstore.swagger.io/v2/pet/findByStatus?status={status}
24
- output:
25
- from: .[0]
18
+ call: http
19
+ with:
20
+ method: get
21
+ endpoint:
22
+ uri: https://petstore.swagger.io/v2/pet/findByStatus?status={status}
23
+ output:
24
+ from: .[0]
26
25
"""
27
26
And given the workflow input is:
28
27
"""yaml
@@ -43,13 +42,12 @@ Feature: Call Task
43
42
namespace: default
44
43
name: http-call-with-response-output
45
44
do:
46
- getPetById:
47
- call: http
48
- with:
49
- method: get
50
- endpoint:
51
- uri: https://petstore.swagger.io/v2/pet/{petId}
52
- output: response
45
+ call: http
46
+ with:
47
+ method: get
48
+ endpoint:
49
+ uri: https://petstore.swagger.io/v2/pet/{petId}
50
+ output: response
53
51
"""
54
52
And given the workflow input is:
55
53
"""yaml
@@ -70,16 +68,15 @@ Feature: Call Task
70
68
namespace: default
71
69
name: http-call-with-basic-auth
72
70
do:
73
- getSecuredEndpoint:
74
- call: http
75
- with:
76
- method: get
77
- endpoint:
78
- uri: https://httpbin.org/basic-auth/{username}/{password}
79
- authentication:
80
- basic:
81
- username: ${ .username }
82
- password: ${ .password }
71
+ call: http
72
+ with:
73
+ method: get
74
+ endpoint:
75
+ uri: https://httpbin.org/basic-auth/{username}/{password}
76
+ authentication:
77
+ basic:
78
+ username: ${ .username }
79
+ password: ${ .password }
83
80
"""
84
81
And given the workflow input is:
85
82
"""yaml
@@ -99,16 +96,15 @@ Feature: Call Task
99
96
namespace: default
100
97
name: openapi-call-with-content-output
101
98
do:
102
- getPetsByStatus:
103
- call: openapi
104
- with:
105
- document:
106
- uri: https://petstore.swagger.io/v2/swagger.json
107
- operation: findPetsByStatus
108
- parameters:
109
- status: ${ .status }
110
- output:
111
- from: . | length
99
+ call: openapi
100
+ with:
101
+ document:
102
+ uri: https://petstore.swagger.io/v2/swagger.json
103
+ operation: findPetsByStatus
104
+ parameters:
105
+ status: ${ .status }
106
+ output:
107
+ from: . | length
112
108
"""
113
109
And given the workflow input is:
114
110
"""yaml
@@ -127,15 +123,14 @@ Feature: Call Task
127
123
namespace: default
128
124
name: openapi-call-with-response-output
129
125
do:
130
- getPetById:
131
- call: openapi
132
- with:
133
- document:
134
- uri: https://petstore.swagger.io/v2/swagger.json
135
- operation: getPetById
136
- parameters:
137
- petId: ${ .petId }
138
- output: response
126
+ call: openapi
127
+ with:
128
+ document:
129
+ uri: https://petstore.swagger.io/v2/swagger.json
130
+ operation: getPetById
131
+ parameters:
132
+ petId: ${ .petId }
133
+ output: response
139
134
"""
140
135
And given the workflow input is:
141
136
"""yaml
0 commit comments