-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
38 lines (38 loc) · 883 Bytes
/
openapi.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
openapi: 3.0.3
info:
description: This is an example of the openapi documentation
title: OpenAPI
version: 0.0.0
paths:
/pet:
post:
operationId: save
security:
- OAuth2: [write, admin]
responses:
200:
description: Successfully saved
get:
operationId: get
security:
- OAuth2: [read, admin]
responses:
200:
description: Successfully retrieved information
components:
securitySchemes:
OAuth2:
type: oauth2
flows:
authorizationCode:
authorizationUrl: https://example.com/oauth/authorize
tokenUrl: https://example.com/oauth/token
scopes:
read: Grants read access
write: Grants write access
admin: Grants access to admin operations
security:
- OAuth2:
- read
- write
- admin