Find pet by ID
GET
https://petstore.swagger.io/v2/pet/:petId
Returns a single pet
Request
Path Parameters
petId int64required
ID of pet to return
Responses
- 200
- 400
- 404
successful operation
- application/json
- application/xml
Invalid ID supplied
Pet not found
Authorization: api_key
name: api_keytype: apiKeydescription: For this sample, you can use the api key `special-key` to test the authorization filters. in: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
1
RESPONSEClear