Find pet by ID
GET
/pet/{petId}Requisição
[message.pathParameter]
petId
string
required
pet ID
Example:
1
Exemplos de Requisição
[api.label.responses]
OK(200)
Código HTTP: 200
Tipo de Conteúdo: JSONapplication/json
[response.label.jsonSchema]
code
integer
required
status code
>= 0<= 0
data
object (Pet)
required
pet details
id
integer <int64>
required
Pet ID
>= 1
category
object (Category)
required
group
name
string
required
name
Example:
doggie
photoUrls
array[string]
required
image URL
tags
array[object (Tag) {2}]
required
tag
status
enum<string>
required
Pet Sales Status
Allowed values:
availablependingsold
[api.label.example]
{
"code": 0,
"data": {
"name": "Hello Kitty",
"photoUrls": [
"http://dummyimage.com/400x400"
],
"id": 3,
"category": {
"id": 71,
"name": "Cat"
},
"tags": [
{
"id": 22,
"name": "Cat"
}
],
"status": "sold"
}
}
[updatedIn] 3 months ago