Skip to content

Commit 62e012d

Browse files
docs: add example of reusable auth
Signed-off-by: Matthias Pichler <[email protected]>
1 parent bd7bbb9 commit 62e012d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

examples/use-authentication.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
document:
2+
dsl: 1.0.0-alpha1
3+
namespace: examples
4+
name: bearer-auth
5+
version: 1.0.0-alpha1
6+
use:
7+
authentications:
8+
petStoreAuth:
9+
bearer:
10+
token: ${ .token }
11+
do:
12+
getPetById:
13+
call: http
14+
with:
15+
method: get
16+
endpoint:
17+
uri: https://petstore.swagger.io/v2/pet/{petId}
18+
authentication: petStoreAuth

0 commit comments

Comments
 (0)