pet
Find pet by ID.
Changed onReturns a single pet.
get/pet/{petId}
Request
- Base URL: https://petstore3.swagger.io/api/v3
- URL: https://petstore3.swagger.io/api/v3/pet/{petId}
- Auth: one of:
- API key in header api_key
- OAuth 2 (implicit, authorization URL https://petstore3.swagger.io/oauth/authorize, scopes: write:pets, read:pets)
Path parameters
petIdinteger required
ID of pet to return
Response
successful operation
Example response
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
}
}Changes
- breaking
removed the media type
application/xmlfor the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking