Swagger Petstore
1.0.0

Single example of Petstore API, with both endpoints and webhooks. Operations and webhooks are grouped by tag.

This is the documentation for version 1.0.0 of the API. Last update on Feb 24, 2021.

This API is provided under license MIT.

Base URL
http://petstore.swagger.io/v1

All pets

GET /pets

Query parameters

  • limit integer(int32)

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

Responses

  • unexpected error

    Hide response attributes Show response attributes object
  • 200

    A paged array of pets

    Hide headers attribute Show headers attribute
    • x-next string

      A link to the next page of responses

    Hide response attributes Show response attributes array[object]
GET /pets
curl \
 -X GET http://petstore.swagger.io/v1/pets
Response examples (default)
{
  "code": 42,
  "message": "string"
}
Response examples (200)
# Headers
x-next: string

# Payload
[
  {
    "id": 42,
    "name": "string",
    "tag": "string"
  }
]