View Categories

Finds Pets by tags.

< 1 min read

GET/pet/findByTags

Code Samples #

  • 💻 cURL
  • 📄 JavaScript
  • 🐍 Python
  • 🐘 PHP
  • 🔷 C#
  • Java
Copy
curl --request GET \
  --url '/api/v3/pet/findByTags?tags=value' \
  --header 'Authorization: Bearer YOUR_TOKEN'

Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.

Query Parameters #

NameTypeRequiredDescription
tagsarray of stringRequiredTags to filter by

Responses #

200 — successful operation #

FieldTypeRequiredDescription
[].idinteger (int64)Optional
[].namestringRequired
[].categoryobjectOptional
[].category.idinteger (int64)Optional
[].category.namestringOptional
[].photoUrlsarray of stringRequired
[].tagsarray of objectOptional
[].statusstringOptionalpet status in the store Allowed: available, pending, sold
📋
Example 200 response
Copy
[
    {
        "id": 10,
        "name": "doggie",
        "category": {
            "id": 1,
            "name": "Dogs"
        },
        "photoUrls": [
            "string"
        ],
        "tags": [
            {
                "id": 1,
                "name": "string"
            }
        ],
        "status": "available"
    }
]

400 — Invalid tag value #

default — Unexpected error #

Response #

200
[
    {
        "id": 10,
        "name": "doggie",
        "category": {
            "id": 1,
            "name": "Dogs"
        },
        "photoUrls": [
            "string"
        ],
        "tags": [
            {
                "id": 1,
                "name": "string"
            }
        ],
        "status": "available"
    }
]

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.