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 int64 identifier of the pet to retrieve.
200Returns the pet object, including its identifier, name, category, photo URLs, tags, and status.
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 no pet is found with the supplied ID.
defaultUnexpected error
Error handling
A 400 is returned when the petId path parameter is invalid, and a 404 when no pet is found for that identifier. The petId path parameter must be an integer in the int64 format.