Training exercises
External docs
Nothing Found
Training exercises
External docs
Find pet by ID
Returns a single pet
Security
api_key
Request
path Parameters
petId
required
integer
<int64>
ID of pet to return
Responses
200
successful operation
400
Invalid ID supplied
404
Pet not found
get
/pet/{petId}
Try it
Request samples
curl
JavaScript
Node.js
Copy
Response samples
200
application/xml
application/json
application/xml
No sample
Next to
Updates a pet in the store with form data