swagger: '2.0' info: version: 1.0.0 title: Swagger (Simple) description: A sample API termsOfService: 'http://helloreverb.com/terms/' contact: name: Swagger API team email: foo@example.com url: 'http://swagger.io' host: foobar.swagger.io basePath: /api schemes: - http consumes: - application/json produces: - application/json paths: /v3/referral: get: description: Returns referrals operationId: findReferrals produces: - application/json parameters: - name: tags in: query description: tags to filter by required: false type: array items: type: string collectionFormat: csv - name: limit in: query description: maximum number of results to return required: false type: integer format: int32 responses: '200': description: referral response schema: type: array items: $ref: '#/definitions/Pet' default: description: unexpected error schema: $ref: '#/definitions/errorModel' definitions: Pet: type: object discriminator: petType properties: name: type: string petType: type: string required: - name - petType Cat: description: A representation of a cat allOf: - $ref: '#/definitions/Pet' - type: object properties: huntingSkill: type: string description: The measured skill for hunting default: lazy enum: - clueless - lazy - adventurous - aggressive required: - huntingSkill Dog: description: A representation of a dog allOf: - $ref: '#/definitions/Pet' - type: object properties: packSize: type: integer format: int32 description: the size of the pack the dog is from default: 0 minimum: 0 required: - packSize errorModel: type: object required: - code - message properties: code: type: integer format: int32 message: type: string