Pet Store
  1. pet
Pet Store
  • pet
    • Find pet by ID
      GET
    • Update an existing pet
      PUT
    • Add a new pet to the store
      POST
    • Finds Pets by status
      GET
    • Finds Pets by tags
      GET
    • Updates a pet in the store with form data
      POST
    • Deletes a pet
      DELETE
    • uploads an image
      POST
  • store
    • Returns pet inventories by status
      GET
    • Place an order for a pet
      POST
    • Find purchase order by ID
      GET
    • Delete purchase order by ID
      DELETE
  • user
    • Create user
      POST
    • Creates list of users with given input array
      POST
    • Logs user into the system
      GET
    • Logs out current logged in user session
      GET
    • Get user by user name
      GET
    • Update user
      PUT
    • Delete user
      DELETE
  1. pet

Finds Pets by tags

GET
/pet/findByTags
pet
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/pet/findByTags'
Response Response Example
200 - Example 1
[
    {
        "id": 10,
        "name": "doggie",
        "category": {
            "id": 1,
            "name": "Dogs"
        },
        "photoUrls": [
            "string"
        ],
        "tags": [
            {
                "id": 0,
                "name": "string"
            }
        ],
        "status": "available"
    }
]

Request

Query Params
tags
array[string]
optional
Tags to filter by

Responses

🟢200successful operation
application/json
Body
array of:
id
integer <int64>
optional
Example:
10
name
string <string>
required
Example:
doggie
category
object (Category) 
optional
id
integer <int64>
optional
Example:
1
name
string 
optional
Example:
Dogs
photoUrls
array[string]
required
tags
array[object (Tag) {2}] 
optional
id
integer <int64>
optional
name
string 
optional
status
enum<string> <string>
optional
pet status in the store
Allowed values:
availablependingsold
🟠400Invalid tag value
Previous
Finds Pets by status
Next
Updates a pet in the store with form data
Built with