| 1 |
|
| 2 |
}, |
| 3 |
"definitions": { |
| 4 |
"Category": { |
| 5 |
"id": "Category", |
| 6 |
"properties": { |
| 7 |
"id": { |
| 8 |
"format": "int64", |
| 9 |
"type": "integer" |
| 10 |
}, |
| 11 |
"name": { |
| 12 |
"type": "string" |
| 13 |
} |
| 14 |
} |
| 15 |
}, |
| 16 |
"Pet": { |
| 17 |
"id": "Pet", |
| 18 |
"properties": { |
| 19 |
"category": { |
| 20 |
"$ref": "#/definitions/Category" |
| 21 |
}, |
| 22 |
"id": { |
| 23 |
"description": "unique identifier for the pet", |
| 24 |
"format": "int64", |
| 25 |
"maximum": 100.0, |
| 26 |
"minimum": 0.0, |
| 27 |
"type": "integer" |
| 28 |
}, |
| 29 |
"name": { |
| 30 |
"type": "string" |
| 31 |
}, |
| 32 |
"photoUrls": { |
| 33 |
"items": { |
| 34 |
"type": "string" |
| 35 |
}, |
| 36 |
"type": "array" |
| 37 |
}, |
| 38 |
"status": { |
| 39 |
"description": "pet status in the store", |
| 40 |
"enum": [ |
| 41 |
"available", |
| 42 |
"pending", |
| 43 |
"sold" |
| 44 |
], |
| 45 |
"type": "string" |
| 46 |
}, |
| 47 |
"tags": { |
| 48 |
"items": { |
| 49 |
"$ref": "#/definitions/Tag" |
| 50 |
}, |
| 51 |
"type": "array" |
| 52 |
} |
| 53 |
}, |
| 54 |
"required": [ |
| 55 |
"id", |
| 56 |
"name" |
| 57 |
] |
| 58 |
}, |
| 59 |
"newPet": { |
| 60 |
"anyOf": [ |
| 61 |
{ |
| 62 |
"$ref": "#/definitions/Pet" |
| 63 |
}, |
| 64 |
{ |
| 65 |
"required": [ |
| 66 |
"name" |
| 67 |
] |
| 68 |
} |
| 69 |
] |
| 70 |
}, |
| 71 |
"Tag": { |
| 72 |
"id": "Tag", |
| 73 |
"properties": { |
| 74 |
"id": { |
| 75 |
"format": "int64", |
| 76 |
"type": "integer" |
| 77 |
}, |
| 78 |
"name": { |
| 79 |
"type": "string" |
| 80 |
} |
| 81 |
} |
| 82 |
}, |
| 83 |
"Error": { |
| 84 |
"required": [ |
| 85 |
"code", |
| 86 |
"message" |
| 87 |
], |
| 88 |
"properties": { |
| 89 |
"code": { |
| 90 |
"type": "integer", |
| 91 |
"format": "int32" |
| 92 |
}, |
| 93 |
"message": { |
| 94 |
"type": "string" |
| 95 |
} |
| 96 |
} |
| 97 |
} |
| 98 |
}, |
| 99 |
"consumes": [ |
| 100 |
"application/json", |
| 101 |
"application/xml" |
| 102 |
], |
| 103 |
"produces": [ |
| 104 |
"application/json", |
| 105 |
"application/xml", |
| 106 |
"text/plain", |
| 107 |
"text/html" |
| 108 |
], |
| 109 |
"securityDefinitions": { |
| 110 |
"basic": { |
| 111 |
"type": "basic" |
| 112 |
}, |
| 113 |
"apiKey": { |
| 114 |
"type": "apiKey", |
| 115 |
"in": "header", |
| 116 |
"name": "X-API-KEY" |
| 117 |
} |
| 118 |
} |
| 119 |
} |