Swagger Petstore (1.0.0)

Download OpenAPI specification:Download

petstore

pets

pets

List all pets

list all pets

query Parameters
limit
integer <int32>

How many items to return at one time (max 100)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create a pet

add a pet

Responses

Response samples

Content type
application/json
{
  • "code": 0,
  • "message": "string"
}

Info for a specific pet

info for a specific pet

path Parameters
petId
required
string

The id of the pet to retrieve

Responses

Response samples

Content type
application/json
[
  • {
    }
]