1swagger: 2.0
2info:
3 title: OpenAPI 2.0 security oauth2 example
4 version: 1
5paths:
6 /foo:
7 get:
8 responses:
9 '200':
10 description: OK
11 security:
12 - foo: []
13securityDefinitions:
14 foo:
15 flow: 'password'
16 scopes: {}
17 tokenUrl: '/'
18 type: 'oauth2'