Finds Pets by tags

GET /pet/findByTags

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

Query parameters

  • tags array[string]

    Tags to filter by

Responses

  • successful operation

    Hide response attributes Show response attributes array[object]
    • id integer(int64)
    • name string Required
    • category object
      Hide category attributes Show category attributes object
    • photoUrls array[string] Required
    • tags array[object]
      Hide tags attributes Show tags attributes array[object]
    • status string

      pet status in the store

      Values are available, pending, or sold.

  • Invalid tag value

GET /pet/findByTags
curl \
 -X GET /api/v3/pet/findByTags \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": 10,
    "name": "doggie",
    "category": {
      "id": 1,
      "name": "Dogs"
    },
    "photoUrls": [
      "string"
    ],
    "tags": [
      {
        "id": 42,
        "name": "string"
      }
    ],
    "status": "available"
  }
]
Response examples (200)
[
  {
    "id": 10,
    "name": "doggie",
    "category": {
      "id": 1,
      "name": "Dogs"
    },
    "photoUrls": [
      "string"
    ],
    "tags": [
      {
        "id": 42,
        "name": "string"
      }
    ],
    "status": "available"
  }
]