@@ -146,19 +146,19 @@ use:
146
146
- name : externalLogging
147
147
extend : all
148
148
before :
149
- - call : http
150
- with :
151
- method : post
152
- uri : https://fake.log.collector.com
153
- body :
154
- message : " ${ \" Executing task '\( $task.reference)'...\" }"
149
+ call : http
150
+ with :
151
+ method : post
152
+ endpoint : https://fake.log.collector.com
153
+ body :
154
+ message : " ${ \" Executing task '\( $task.reference)'...\" }"
155
155
after :
156
- - call : http
157
- with :
158
- method : post
159
- uri : https://fake.log.collector.com
160
- body :
161
- message : " ${ \" Executed task '\( $task.reference)'...\" }"
156
+ call : http
157
+ with :
158
+ method : post
159
+ endpoint : https://fake.log.collector.com
160
+ body :
161
+ message : " ${ \" Executed task '\( $task.reference)'...\" }"
162
162
functions :
163
163
getAvailablePets :
164
164
call : openapi
260
260
call : http
261
261
with :
262
262
method : get
263
- uri : https://petstore.swagger.io/v2/pet/{petId}
263
+ endpoint : https://petstore.swagger.io/v2/pet/{petId}
264
264
` ` `
265
265
266
266
Serverless Workflow defines several default functions that **MUST** be supported by all implementations and runtimes:
372
372
call: http
373
373
with:
374
374
method: get
375
- uri : https://petstore.swagger.io/v2/pet/{petId}
375
+ endpoint : https://petstore.swagger.io/v2/pet/{petId}
376
376
` ` `
377
377
378
378
# #### OpenAPI Call
@@ -482,15 +482,15 @@ do:
482
482
call: http
483
483
with:
484
484
method: put
485
- uri : https://fake-hospital.com/api/v3/alert/nurses
485
+ endpoint : https://fake-hospital.com/api/v3/alert/nurses
486
486
body:
487
487
patientId: ${ .patient.fullName }
488
488
room: ${ .room.number }
489
489
- name: callDoctor
490
490
call: http
491
491
with:
492
492
method: put
493
- uri : https://fake-hospital.com/api/v3/alert/doctor
493
+ endpoint : https://fake-hospital.com/api/v3/alert/doctor
494
494
body:
495
495
patientId: ${ .patient.fullName }
496
496
room: ${ .room.number }
928
928
call: http
929
929
with:
930
930
method: get
931
- uri : https://
931
+ endpoint : https://
932
932
catch:
933
933
errors:
934
934
with:
@@ -1215,22 +1215,22 @@ use:
1215
1215
call: http
1216
1216
with:
1217
1217
method: post
1218
- uri : https://fake.log.collector.com
1218
+ endpoint : https://fake.log.collector.com
1219
1219
body:
1220
1220
message: "${ \" Executing task '\( $task.reference)'...\" }"
1221
1221
after:
1222
1222
call: http
1223
1223
with:
1224
1224
method: post
1225
- uri : https://fake.log.collector.com
1225
+ endpoint : https://fake.log.collector.com
1226
1226
body:
1227
1227
message: "${ \" Executed task '\( $task.reference)'...\" }"
1228
1228
do:
1229
1229
- name: get
1230
1230
call: http
1231
1231
with:
1232
1232
method: get
1233
- uri : https://fake.com/sample
1233
+ endpoint : https://fake.com/sample
1234
1234
` ` `
1235
1235
1236
1236
*Intercept HTTP calls to 'https://mocked.service.com' and mock its response:*
@@ -1259,7 +1259,7 @@ do:
1259
1259
call: http
1260
1260
with:
1261
1261
method: get
1262
- uri : https://fake.com/sample
1262
+ endpoint : https://fake.com/sample
1263
1263
` ` `
1264
1264
1265
1265
# ## Error
0 commit comments