1.0.0
OAS 2.0

Swagger Petstore

A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification

Client Libraries
Shell
Ruby
Node.js
PHP
Python
More

/pets

Returns all pets from the system that the user has access to

Responses
  • 200

    A list of pets.

GET/pets
Shell cURL
curl --request GET \
  --url http://petstore.swagger.io/api/pets
[
  {
    "id": 1,
    "name": "…",
    "tag": "…"
  }
]

Models