Last active
May 4, 2016 12:31
-
-
Save richvdh/2deeca4a2a4f6feab2a9a630d20cfbe9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allOf: | |
- $ref: 'pet.yaml' | |
type: object | |
properties: | |
laziness: | |
type: integer | |
format: int64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: '2.0' | |
info: | |
version: '1.0.0' | |
title: Swagger Catstore | |
schemes: | |
- http | |
consumes: | |
- application/json | |
produces: | |
- application/json | |
paths: | |
/pets: | |
get: | |
description: Returns all pets from the system that the user has access to | |
responses: | |
'200': | |
description: pet response | |
schema: | |
type: array | |
items: | |
$ref: 'pet.yaml' | |
/cats: | |
get: | |
description: Returns the cats in the system | |
responses: | |
'200': | |
description: cat response | |
schema: | |
type: object | |
title: Cats | |
properties: | |
cats: | |
type: array | |
items: | |
$ref: 'cat.yaml' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type: object | |
required: | |
- id | |
- name | |
properties: | |
id: | |
type: integer | |
format: int64 | |
name: | |
type: string | |
tag: | |
type: string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment