Skip to content

Find pet by ID

Request

Returns a single pet

Security
api_key
Path
petIdinteger, (int64)requireddeprecated

ID of pet to return

curl -i -X GET \
  'https://innovario.apishowdown.com/_mock/petstore/pet/{petId}' \
  -H 'api_key: YOUR_API_KEY_HERE'

Responses

successful operation

Body
idinteger, (int64)(Id)read-only

Pet ID

Find more info here
categoryobject(Category)

Categories this pet belongs to

namestringrequired

The name given to a pet

Example:"Guru"
photoUrlsstring or integer or null, [ 1 .. 10 ] itemsrequired
Default:[]
One of:

The list of URL to a cute photos featuring pet

[ 1 .. 10 ] items
isString
friendobject(Pet)Recursive
tagsArray of objects, ( 0 .. 100 )(Tag)

Tags attached to the pet

statusstring

Pet status in the store

Default:"pending"
Enum:"available""pending""sold"
petTypestring

Type of a pet

Enum:"cat""dog""bee"
Discriminator
huntingSkillstring or booleanrequired

The measured skill for hunting

Default:"lazy"
Enum:"clueless""lazy""adventurous""aggressive"012
Example:"adventurous"
Response
{ "id": 0, "category": { "id": 0, "name": "string", "sub": {} }, "name": "Guru", "photoUrls": [], "friend": {}, "tags": [ {} ], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }