Debian Codegraph @

fixtures/yaml/resources/taggedResource.yaml

raw
1 swagger: '2.0'
2 x-reverb:
3 addAnythingYouWant: true
4 info:
5 x-reverb-info: 'this is an example'
6 version: 1.0.9-abcd
7 title: 'Swagger Sample API'
8 description: 'A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification'
9 termsOfService: 'http://helloreverb.com/terms/'
10 contact: {name: 'wordnik api team', url: 'http://developer.wordnik.com'}
11 license: {name: 'Creative Commons 4.0 International', url: 'http://creativecommons.org/licenses/by/4.0/'}
12 host: my.api.com
13 basePath: /v1
14 schemes:
15 - http
16 - https
17 consumes:
18 - application/json
19 produces:
20 - application/json
21 - application/xml
22 tags:
23 - {name: pets}
24 paths:
25 x-reverb-path-info: 'vendor info'
26 /pets: {x-vendor-method: {}, get: {x-vendor-operation-property: {}, description: 'Returns a pet based on ID', summary: 'Find pet by ID', operationId: getPetsById, produces: [application/json, text/html], parameters: [{x-vendor-parameter-property: {}, name: petId, in: path, description: 'ID of pet that needs to be fetched', required: true, type: array, items: {type: string}, collectionFormat: csv}], responses: {'200': {description: 'pet response', schema: {$ref: Pet}}, x-vendor-operation-response-property: {}, default: {description: 'error payload', schema: {$ref: ErrorModel}}}}}
27 definitions:
28 Pet: {x-vendor-model-property: {}, required: [name], properties: {name: {type: string}, tag: {type: string}}}
29 ErrorModel: {required: [code, message], properties: {code: {type: integer, format: int32}, message: {type: string}}}