Pets
Everything about your pets
Body
idinteger · int64RequiredExample:
1
namestringRequiredExample:
Fluffy
tagstringOptionalExample:
dog
statusstring · enumOptionalPossible values:
Responses
201
Pet created
post
POST /v1/pets HTTP/1.1
Host: petstore.example.com
Content-Type: application/json
Accept: */*
Content-Length: 57
{
"id": 1,
"name": "Fluffy",
"tag": "dog",
"status": "available"
}
201
Pet created
No content
This operation is deprecated and will be sunset on 2030-12-05.
Path parameters
petIdstringRequired
Responses
200
Pet response
application/json
get
GET /v1/pets/{petId} HTTP/1.1
Host: petstore.example.com
Accept: */*
200
Pet response
{
"id": 1,
"name": "Fluffy",
"tag": "dog",
"status": "available"
}