Find pet by ID.
GET/pets/{petId}
Find pet by ID.
Path Parameters
petId: number
formatint64
Returns
Find pet by ID.
curl http://localhost:4000/api/v3/pets/$PET_ID \
-H "Authorization: Bearer $BARKEND_BEARER_TOKEN"{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}{
"error": {
"id": "invalid_id",
"message": "Invalid ID supplied"
}
}{
"error": {
"id": "not_found",
"message": "Pet not found"
}
}Returns Examples
{
"name": "doggie",
"photoUrls": [
"string"
],
"id": 10,
"category": {
"id": 1,
"name": "Dogs"
},
"status": "available",
"tags": [
{
"id": 0,
"name": "name"
}
]
}{
"error": {
"id": "invalid_id",
"message": "Invalid ID supplied"
}
}{
"error": {
"id": "not_found",
"message": "Pet not found"
}
}