File: resourceWithLinkedDefinitions.yaml

package info (click to toggle)
golang-github-go-openapi-loads 0.22.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 1,208 kB
  • sloc: makefile: 4
file content (23 lines) | stat: -rw-r--r-- 951 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
swagger: '2.0'
info:
  version: 1.0.9-abcd
  title: 'Swagger Sample API'
  description: 'A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification'
  termsOfService: 'http://helloreverb.com/terms/'
  contact: {name: 'wordnik api team', url: 'http://developer.wordnik.com'}
  license: {name: 'Creative Commons 4.0 International', url: 'http://creativecommons.org/licenses/by/4.0/'}
host: my.api.com
basePath: /v1
schemes:
  - http
  - https
consumes:
  - application/json
produces:
  - application/json
  - application/xml
paths:
  '/pets/{petId}': {$ref: 'https://raw.githubusercontent.com/reverb/swagger-spec/master/fixtures/v2.0/json/resources/resourceWithLinkedDefinitions_part1.json'}
definitions:
  Pet: {required: [name], properties: {name: {type: string}, tag: {type: string}}}
  ErrorModel: {required: [code, message], properties: {code: {type: integer, format: int32}, message: {type: string}}}