Swagger Petstore (1.0.0)

Download OpenAPI specification:Download

License: MIT

pets

List all pets

query Parameters
limit
integer <int32>

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

Responses

200

A paged array of pets

default

unexpected error

get /pets
http://petstore.swagger.io/v1/pets

Response samples

application/json
Copy
Expand all Collapse all
[
  • {
    }
]

Create a pet

Responses

201

Null response

default

unexpected error

post /pets
http://petstore.swagger.io/v1/pets

Response samples

application/json
Copy
Expand all Collapse all
{
  • "code": 0,
  • "message": "string"
}

Info for a specific pet

path Parameters
petId
required
string

The id of the pet to retrieve

Responses

200

Expected response to a valid request

default

unexpected error

get /pets/{petId}
http://petstore.swagger.io/v1/pets/{petId}

Response samples

application/json
Copy
Expand all Collapse all
[
  • {
    }
]