Swagger Petstore (1.0.0)

Download OpenAPI specification:Download

Multi-file boilerplate for OpenAPI Specification.

pets

List

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
{
  • "id": 0,
  • "name": "string",
  • "tag": "string"
}

Create

Create a pet

Responses

Response samples

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

Detail

Info for a specific pet

path Parameters
petId
required
string

The id of the pet to retrieve

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "name": "string",
  • "tag": "string"
}