Schemas
ApiResponse
- objectExample:
{"code":0,"type":"string","message":"string"}Properties:codeinteger:int32Example:0typestringExample:"string"messagestringExample:"string"
Cat
A representation of a cat
- objectExample:
{"id":0,"category":{"id":0,"name":"string"},"name":"doggie","photoUrls":["string"],"tags":[{"id":0,"name":"string"}],"status":"available","huntingSkill":"clueless"}Properties:idinteger:int64RequiredExample:0categoryobjectCategoryExample:{"id":0,"name":"string"}namestringRequiredExample:"doggie"photoUrlsarray<string>RequiredExample:["string"]Items:- stringExample:
"string"
tagsarrayExample:[{"id":0,"name":"string"}]Items:- objectTagExample:
{"id":0,"name":"string"}
statusstringpet status in the storeExample:"available"Enum:availablependingsoldhuntingSkillstringRequiredThe measured skill for huntingExample:"clueless"Enum:cluelesslazyadventurousaggressive
Category
- objectExample:
{"id":0,"name":"string","sub":{"prop1":"string"}}Properties:idinteger:int64IdCategory IDExample:0ReadOnlynamestringCategory nameExample:"string"Minimum string length:1subobjectTest Sub CategoryExample:{"prop1":"string"}
Pet
- objectExample:
{"id":null,"category":{"id":0,"name":"string"},"name":"Guru"}Properties:idanycategoryobjectCategoryCategories this pet belongs toExample:{"id":0,"name":"string"}namestringRequiredThe name given to a petExample:"Guru"
Tag
- objectExample:
{"id":0,"name":"string"}Properties:idinteger:int64IdTag IDExample:0ReadOnlynamestringTag nameExample:"string"Minimum string length:1
Examples
Order
{
"quantity": "1,",
"shipDate": "2018-10-19T16:46:45Z,",
"status": "placed,",
"complete": false
}Request Bodies
Pet
Required
Pet object that needs to be added to the store
Content Type:
application/json
- Schema
- objectPetMy PetExample:
{"id":0,"category":{"id":0,"name":"string"},"name":"doggie","photoUrls":["string"],"tags":[{"id":0,"name":"string"}],"status":"available"}Properties:idinteger:int64RequiredExample:0categoryobjectCategoryExample:{"id":0,"name":"string"}namestringRequiredExample:"doggie"photoUrlsarray<string>RequiredExample:["string"]Items:- stringExample:
"string"
tagsarrayExample:[{"id":0,"name":"string"}]Items:- objectTagExample:
{"id":0,"name":"string"}
statusstringpet status in the storeExample:"available"Enum:availablependingsold
UserArray
Required
List of user object
Content Type:
application/json
- Schema
- arrayExample:
[{"id":0,"username":"string","firstName":"string","lastName":"string","email":"string","password":"string","phone":"string","userStatus":0}]Items:- objectUserExample:
{"id":0,"username":"string","firstName":"string","lastName":"string","email":"string","password":"string","phone":"string","userStatus":0}