github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/enhancements/1659/fixture-1659.yaml (about) 1 swagger: '2.0' 2 basePath: / 3 host: localhost 4 info: 5 version: 0.1.0 6 title: demonstrates principal 7 termsOfService: | 8 There are actually none. 9 license: 10 name: 'Apache 2.0' 11 url: https://www.apache.org/licenses/LICENSE-2.0 12 contact: 13 name: go-openapi maintainers 14 email: nowhere@example.com 15 url: https://github.com/go-openapi 16 17 consumes: 18 - application/json 19 produces: 20 - application/json 21 schemes: 22 - http 23 - https 24 25 securityDefinitions: 26 apikey: 27 type: apiKey 28 name: api_key 29 in: header 30 petstore_auth: 31 type: oauth2 32 authorizationUrl: http://swagger.io/api/oauth/dialog 33 flow: implicit 34 scopes: 35 'write:pets': modify pets in your account 36 'read:pets': read your pets 37 basic: 38 type: basic 39 40 paths: 41 /: 42 get: 43 security: 44 - apikey: [] 45 - petstore_auth: ["read:pets"] 46 - basic: [] 47 parameters: 48 - name: body 49 in: body 50 schema: 51 type: object 52 responses: 53 default: 54 description: error 55 schema: 56 type: object 57 post: 58 parameters: 59 - name: body 60 in: body 61 schema: 62 type: object 63 responses: 64 default: 65 description: error 66 schema: 67 type: object