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 need, including its name, category, photo URLs, tags, and status.
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 the pet is not found.
defaultUnexpected error
Error handling
A 400 is returned when petId is invalid, and a 404 when no pet is found for that ID. Supply petId as an int64 identifier.