Debian Codegraph @

fixtures/yaml/resources/multipleMimeTypes.yaml

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