Skip to content

Commit 5e05b53

Browse files
fix: update use endpoint in examples
Signed-off-by: Matthias Pichler <[email protected]>
1 parent 35c0e34 commit 5e05b53

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

dsl-reference.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,19 @@ use:
146146
- name: externalLogging
147147
extend: all
148148
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)'...\" }"
155155
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)'...\" }"
162162
functions:
163163
getAvailablePets:
164164
call: openapi
@@ -260,7 +260,7 @@ do:
260260
call: http
261261
with:
262262
method: get
263-
uri: https://petstore.swagger.io/v2/pet/{petId}
263+
endpoint: https://petstore.swagger.io/v2/pet/{petId}
264264
```
265265
266266
Serverless Workflow defines several default functions that **MUST** be supported by all implementations and runtimes:
@@ -372,7 +372,7 @@ do:
372372
call: http
373373
with:
374374
method: get
375-
uri: https://petstore.swagger.io/v2/pet/{petId}
375+
endpoint: https://petstore.swagger.io/v2/pet/{petId}
376376
```
377377

378378
##### OpenAPI Call
@@ -482,15 +482,15 @@ do:
482482
call: http
483483
with:
484484
method: put
485-
uri: https://fake-hospital.com/api/v3/alert/nurses
485+
endpoint: https://fake-hospital.com/api/v3/alert/nurses
486486
body:
487487
patientId: ${ .patient.fullName }
488488
room: ${ .room.number }
489489
- name: callDoctor
490490
call: http
491491
with:
492492
method: put
493-
uri: https://fake-hospital.com/api/v3/alert/doctor
493+
endpoint: https://fake-hospital.com/api/v3/alert/doctor
494494
body:
495495
patientId: ${ .patient.fullName }
496496
room: ${ .room.number }
@@ -928,7 +928,7 @@ do:
928928
call: http
929929
with:
930930
method: get
931-
uri: https://
931+
endpoint: https://
932932
catch:
933933
errors:
934934
with:
@@ -1215,22 +1215,22 @@ use:
12151215
call: http
12161216
with:
12171217
method: post
1218-
uri: https://fake.log.collector.com
1218+
endpoint: https://fake.log.collector.com
12191219
body:
12201220
message: "${ \"Executing task '\($task.reference)'...\" }"
12211221
after:
12221222
call: http
12231223
with:
12241224
method: post
1225-
uri: https://fake.log.collector.com
1225+
endpoint: https://fake.log.collector.com
12261226
body:
12271227
message: "${ \"Executed task '\($task.reference)'...\" }"
12281228
do:
12291229
- name: get
12301230
call: http
12311231
with:
12321232
method: get
1233-
uri: https://fake.com/sample
1233+
endpoint: https://fake.com/sample
12341234
```
12351235

12361236
*Intercept HTTP calls to 'https://mocked.service.com' and mock its response:*
@@ -1259,7 +1259,7 @@ do:
12591259
call: http
12601260
with:
12611261
method: get
1262-
uri: https://fake.com/sample
1262+
endpoint: https://fake.com/sample
12631263
```
12641264

12651265
### Error

0 commit comments

Comments
 (0)