| 1 |
{ |
| 2 |
"delete": { |
| 3 |
"security": [ |
| 4 |
{ |
| 5 |
"apiKey": [] |
| 6 |
} |
| 7 |
], |
| 8 |
"description": "Deletes the Pet by id", |
| 9 |
"operationId": "deletePet", |
| 10 |
"parameters": [ |
| 11 |
{ |
| 12 |
"name": "id", |
| 13 |
"in": "path", |
| 14 |
"description": "ID of pet to delete", |
| 15 |
"required": true, |
| 16 |
"type": "integer", |
| 17 |
"format": "int64" |
| 18 |
} |
| 19 |
], |
| 20 |
"responses": { |
| 21 |
"204": { |
| 22 |
"description": "pet deleted" |
| 23 |
}, |
| 24 |
"default": { |
| 25 |
"description": "unexpected error", |
| 26 |
"schema": { |
| 27 |
"$ref": "#/definitions/Error" |
| 28 |
} |
| 29 |
} |
| 30 |
} |
| 31 |
}, |
| 32 |
"get": { |
| 33 |
"tags": [ "Pet Operations" ], |
| 34 |
"operationId": "getPetById", |
| 35 |
"summary": "Finds the pet by id", |
| 36 |
"responses": { |
| 37 |
"200": { |
| 38 |
"description": "Pet response", |
| 39 |
"schema": { |
| 40 |
"$ref": "#/definitions/Pet" |
| 41 |
} |
| 42 |
}, |
| 43 |
"default": { |
| 44 |
"description": "Unexpected error", |
| 45 |
"schema": { |
| 46 |
"$ref": "#/definitions/Error" |
| 47 |
} |
| 48 |
} |
| 49 |
} |
| 50 |
}, |
| 51 |
"parameters": [ |
| 52 |
{ |
| 53 |
"name": "id", |
| 54 |
"in": "path", |
| 55 |
"description": "ID of pet", |
| 56 |
"required": true, |
| 57 |
"type": "integer", |
| 58 |
"format": "int64" |
| 59 |
} |
| 60 |
] |
| 61 |
} |