| 1 |
{ |
| 2 |
"swagger": "2.0", |
| 3 |
"info": { |
| 4 |
"version": "1.0.0", |
| 5 |
"title": "Swagger Petstore", |
| 6 |
"contact": { |
| 7 |
"name": "Wordnik API Team", |
| 8 |
"url": "http://developer.wordnik.com" |
| 9 |
}, |
| 10 |
"license": { |
| 11 |
"name": "Creative Commons 4.0 International", |
| 12 |
"url": "http://creativecommons.org/licenses/by/4.0/" |
| 13 |
} |
| 14 |
}, |
| 15 |
"host": "petstore.swagger.wordnik.com", |
| 16 |
"basePath": "/api", |
| 17 |
"schemes": [ |
| 18 |
"http" |
| 19 |
], |
| 20 |
"paths": { |
| 21 |
"/pets": { |
| 22 |
"get": { |
| 23 |
"security": [ |
| 24 |
{ |
| 25 |
"basic": [] |
| 26 |
} |
| 27 |
], |
| 28 |
"tags": [ "Pet Operations" ], |
| 29 |
"operationId": "getAllPets", |
| 30 |
"parameters": [ |
| 31 |
{ |
| 32 |
"name": "status", |
| 33 |
"in": "query", |
| 34 |
"description": "The status to filter by", |
| 35 |
"type": "string" |
| 36 |
}, |
| 37 |
{ |
| 38 |
"name": "limit", |
| 39 |
"in": "query", |
| 40 |
"description": "The maximum number of results to return", |
| 41 |
"type": "integer", |
| 42 |
"format": "int64" |
| 43 |
} |
| 44 |
], |
| 45 |
"summary": "Finds all pets in the system", |
| 46 |
"responses": { |
| 47 |
"200": { |
| 48 |
"description": "Pet response", |
| 49 |
"schema": { |
| 50 |
"type": "array", |
| 51 |
"items": { |
| 52 |
"$ref": "#/definitions/Pet" |
| 53 |
} |
| 54 |
} |
| 55 |
}, |
| 56 |
"default": { |
| 57 |
"description": "Unexpected error", |
| 58 |
"schema": { |
| 59 |
"$ref": "#/definitions/Error" |
| 60 |
} |
| 61 |
} |
| 62 |
} |
| 63 |
}, |
| 64 |
"post": { |
| 65 |
"security": [ |
| 66 |
{ |
| 67 |
"basic": [] |
| 68 |
} |
| 69 |
], |
| 70 |
"tags": [ "Pet Operations" ], |
| 71 |
"operationId": "createPet", |
| 72 |
"summary": "Creates a new pet", |
| 73 |
"consumes": ["application/x-yaml"], |
| 74 |
"produces": ["application/x-yaml"], |
| 75 |
"parameters": [ |
| 76 |
{ |
| 77 |
"name": "pet", |
| 78 |
"in": "body", |
| 79 |
"description": "The Pet to create", |
| 80 |
"required": true, |
| 81 |
"schema": { |
| 82 |
"$ref": "#/definitions/newPet" |
| 83 |
} |
| 84 |
} |
| 85 |
], |
| 86 |
"responses": { |
| 87 |
"200": { |
| 88 |
"description": "Created Pet response", |
| 89 |
"schema": { |
| 90 |
"$ref": "#/definitions/Pet" |
| 91 |
} |
| 92 |
}, |
| 93 |
"default": { |
| 94 |
"description": "Unexpected error", |
| 95 |
"schema": { |
| 96 |
"$ref": "#/definitions/Error" |
| 97 |
} |
| 98 |
} |
| 99 |
} |
| 100 |
} |
| 101 |
} |