tags:
  - pet
summary: Find pet by ID
description: Returns a pet when ID < 10.  ID > 10 or nonintegers will simulate API error conditions
operationId: getPetById
produces:
  - application/json
  - application/xml
parameters:
  - in: path
    name: petId
    description: ID of pet that needs to be fetched
    required: true
    type: integer
    format: int64
responses:
  "404":
    description: Pet not found
  "200":
    description: successful operation
    schema:
      $ref: "#/definitions/Pet"
  "400":
    description: Invalid ID supplied
security:
  - api_key: []
  - petstore_auth:
    - write_pets
    - read_pets
