-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapidef.yaml
53 lines (52 loc) · 1.18 KB
/
apidef.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
openapi: 3.0.0
info:
version: 1.0.0
title: echo
x-wso2-basePath: /Hello
x-wso2-production-endpoints:
urls:
- http://localhost:10000/hello
# x-wso2-disable-security: true
# security:
# - petstore_basic: []
# x-wso2-transports:
# - "http"
# - "https"
x-wso2-mutual-ssl: "optional"
x-wso2-application-security:
security-types:
# - "oauth2"
- "basic_auth"
optional: false
paths:
/sayHello:
get:
summary: echos the request
operationId: echoRequest
responses:
'200':
description: Expected response to a valid request
# x-wso2-disable-security: true
security:
- petstore_auth: []
# x-wso2-transports:
# - "http"
# - "https"
x-wso2-application-security:
security-types:
- "oauth2"
# - "basic_auth"
# optional: false
components:
securitySchemes:
petstore_auth:
type: oauth2
flows:
implicit:
authorizationUrl: https://petstore.swagger.io/oauth/authorize
scopes:
write:pets: modify pets in your account
read:pets: read your pets
petstore_basic:
type: http
scheme: basic