Finds Pets by tags
GET/pet/findByTags
URL | Description |
---|---|
https://petstore.swagger.io/v2 | Default server |
https://petstore.swagger.io/sandbox | Sandbox server |
http://127.0.0.1:4010 | Prism Mock API (local) |
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Request
Query Parameters
Tags to filter by
Responses
- 200
- 400
successful operation
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
Array [
Array [
]
- cat
- dog
- bee
]
category
Category
Category ID
Category name
Possible values: non-empty
sub
object
Test Sub Category
Dumb Property
The name given to a pet
The list of URL to a cute photos featuring pet
Possible values: <= 20
tags
Tag[]
required
Tags attached to the pet
Possible values: >= 1
Tag name
Possible values: non-empty
Pet status in the store
Enum Value | Description |
---|---|
available | When the pet is available |
pending | When the pet is being sold |
sold | When the pet has been sold. These descriptions can contain line breaks and also links |
Possible values: [available
, pending
, sold
]
petType
string
Type of a pet
Possible values: [cat
, dog
, bee
]
The measured skill for hunting
Possible values: [clueless
, lazy
, adventurous
, aggressive
]
lazy
The size of the pack the dog is from
Possible values: >= 1
1
Average amount of honey produced per day in ounces
0
[
{
"id": 0,
"category": {
"id": 0,
"name": "string",
"sub": {
"prop1": "string"
}
},
"name": "Guru",
"photoUrls": [
"string"
],
"friend": {},
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available",
"petType": {
"huntingSkill": "adventurous"
}
}
]
- Schema
- Example (from schema)
Schema
Array [
Array [
]
- cat
- dog
- bee
]
category
Category
Category ID
Category name
Possible values: non-empty
sub
object
Test Sub Category
Dumb Property
The name given to a pet
The list of URL to a cute photos featuring pet
Possible values: <= 20
tags
Tag[]
required
Tags attached to the pet
Possible values: >= 1
Tag name
Possible values: non-empty
Pet status in the store
Enum Value | Description |
---|---|
available | When the pet is available |
pending | When the pet is being sold |
sold | When the pet has been sold. These descriptions can contain line breaks and also links |
Possible values: [available
, pending
, sold
]
petType
string
Type of a pet
Possible values: [cat
, dog
, bee
]
The measured skill for hunting
Possible values: [clueless
, lazy
, adventurous
, aggressive
]
lazy
The size of the pack the dog is from
Possible values: >= 1
1
Average amount of honey produced per day in ounces
0
<0>
<id>0</id>
<category>
<id>0</id>
<name>string</name>
<sub>
<prop1>string</prop1>
</sub>
</category>
<name>Guru</name>
<photoUrls>string</photoUrls>
<friend/>
<tags>
<id>0</id>
<name>string</name>
</tags>
<status>available</status>
<petType>
<huntingSkill>adventurous</huntingSkill>
</petType>
</0>
Invalid tag value