Find pet by ID
GET
/pet/{petId}Requisição
Path Params
petId
string
required
pet ID
Example:
1
Exemplos de Requisição
Responses
OK(200)
Código HTTP: 200
Tipo de Conteúdo: JSONapplication/json
Data Schema
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
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"
}
}
Last modified: 3 months ago