Find pet by ID
GET
/pet/{petId}Returns a single pet
Request
Path Params
petId
integer
required
ID of pet to return
Request samples
Responses
successful operation(200)
Invalid ID supplied(400)
Pet not found(404)
successful operation
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
id
integer <int64>
optional
Example:
10
name
string <string>
required
Example:
doggie
category
object (Category)
optional
id
integer <int64>
optional
Example:
1
name
string
optional
Example:
Dogs
photoUrls
array[string]
required
tags
array[object (Tag) {2}]
optional
id
integer <int64>
optional
name
string
optional
status
enum<string> <string>
optional
pet status in the store
Allowed values:
availablependingsold
Example
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}
Last modified: 2 years ago