# Finds Pets by tags

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /pet/findByTags:
    get:
      summary: Finds Pets by tags
      deprecated: true
      description: >-
        Multiple tags can be provided with comma separated strings. Use tag1,
        tag2, tag3 for testing.
      operationId: findPetsByTags
      tags:
        - 默认模块/pet
        - pet
      parameters:
        - name: tags
          in: query
          description: Tags to filter by
          required: true
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Pet'
          headers: {}
          x-apifox-name: 成功
        '400':
          description: Invalid tag value
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apifox-orders: []
                x-apifox-ignore-properties: []
          headers: {}
          x-apifox-name: 请求有误
      security:
        - petstore_auth:
            - write:pets
            - read:pets
          x-apifox:
            schemeGroups:
              - id: hWhBOZmJXI5rmYe2w9Hv2
                schemeIds:
                  - petstore_auth
            required: true
            use:
              id: hWhBOZmJXI5rmYe2w9Hv2
            scopes:
              hWhBOZmJXI5rmYe2w9Hv2:
                petstore_auth:
                  - write:pets
                  - read:pets
      x-apifox-folder: 默认模块/pet
      x-apifox-status: deprecated
      x-run-in-apifox: https://app.apifox.com/web/project/6831437/apis/api-328867525-run
components:
  schemas:
    Pet:
      type: object
      required:
        - name
        - photoUrls
      properties:
        id:
          type: integer
          format: int64
        category:
          $ref: '#/components/schemas/Category'
        name:
          type: string
          examples:
            - doggie
        photoUrls:
          type: array
          xml:
            wrapped: true
          items:
            type: string
            xml:
              name: photoUrl
        tags:
          type: array
          xml:
            wrapped: true
          items:
            $ref: '#/components/schemas/Tag'
        status:
          type: string
          description: pet status in the store
          enum:
            - available
            - pending
            - sold
      xml:
        name: Pet
      x-apifox-orders:
        - id
        - category
        - name
        - photoUrls
        - tags
        - status
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    Tag:
      type: object
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
      xml:
        name: Tag
      x-apifox-orders:
        - id
        - name
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    Category:
      type: object
      properties:
        id:
          type: integer
          format: int64
        name:
          type: string
      xml:
        name: Category
      x-apifox-orders:
        - id
        - name
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    api_key:
      type: apikey
      name: api_key
      in: header
    petstore_auth:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://petstore.swagger.io/oauth/authorize
          scopes:
            read:pets: read your pets
            write:pets: modify pets in your account
    bearer:
      type: http
      scheme: bearer
servers: []
security:
  - bearer: []

```
