GET
/pet/{petId}Get a pet by ID
Retrieves a single pet from the store by its identifier. Use petId to select the pet whose details you want to retrieve.
petIdintegerrequired
The integer identifier of the pet to retrieve.
200Returns the pet object, including its available pet details.
idintegeroptional
namestringrequired
categoryobjectoptional
photoUrlsarray<string>required
tagsarray<object>optional
statusstringoptional
pet status in the store
400Returned when the supplied pet ID is invalid.
404Returned when the pet does not exist.
defaultReturned when an unexpected error occurs.
Error handling
The petId path parameter must be a valid pet identifier. A 400 is returned for an invalid ID, and a 404 is returned when the pet is not found.