View Categories

List all pets

< 1 min read

GET/pets

Code Samples #

  • 💻 cURL
  • 📄 JavaScript
  • 🐍 Python
  • 🐘 PHP
  • 🔷 C#
  • Java
Copy
curl --request GET \
  --url 'https://petstore.example.com/v1/pets'

Query Parameters #

NameTypeRequiredDescription
limitinteger (int32)OptionalMax items to return (max 100)

Responses #

200 — A paged array of pets #

FieldTypeRequiredDescription
[].namestringRequired
[].tagstringOptional
[].idinteger (int64)Required
📋
Example 200 response
Copy
[
    {
        "name": "Mochi",
        "tag": "cat",
        "id": 1
    }
]

Response #

200
[
    {
        "name": "Mochi",
        "tag": "cat",
        "id": 1
    }
]

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.