All pets

GET /pets

Query parameters

  • limit integer(int32)

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

Responses

  • 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]
  • unexpected error

    Hide response attributes Show response attributes object
GET /pets
curl \
 -X GET http://petstore.swagger.io/v1/pets
Response examples (200)
# Headers
x-next: string

# Payload
[
  {
    "id": 42,
    "name": "string",
    "tag": "string"
  }
]
Response examples (200)
# Headers
x-next: string

# Payload
[
  {
    "id": 42,
    "name": "string",
    "tag": "string"
  }
]
Response examples (default)
{
  "code": 42,
  "message": "string"
}
Response examples (default)
{
  "code": 42,
  "message": "string"
}