Everything about your Pets
API Catalog///
- Petsstore
Train Travel API
- Delete purchase order by ID
Returns pets inventories by status
Place an order for a pets
Find purchase order by ID
Delete purchase order by...
Swagger Petsstore - OpenAPI 3.0 (1.0.20-SNAPSHOT)
This is a sample Pets Store Server based on the OpenAPI 3.0 specification. You can find out more about Swagger at http://swagger.io. In the third iteration of the pets store, we've switched to the design first approach! You can now help us improve the API whether it's by making changes to the definition itself or to the code. That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
Some useful links:
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://vlad.redocly.xyz/_mock/apis/petsstore
https://vlad.redocly.xyz/v3
- Mock serverhttps://vlad.redocly.xyz/_mock/apis/petsstore/store/inventory
- https://vlad.redocly.xyz/v3/store/inventory
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://vlad.redocly.xyz/_mock/apis/petsstore/store/inventory \
-H 'api_key: YOUR_API_KEY_HERE'Response
application/json
{ "property1": 0, "property2": 0 }
- Mock serverhttps://vlad.redocly.xyz/_mock/apis/petsstore/store/order
- https://vlad.redocly.xyz/v3/store/order
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://vlad.redocly.xyz/_mock/apis/petsstore/store/order \
-H 'Content-Type: application/json' \
-d '{
"id": 10,
"petId": 198772,
"quantity": 7,
"shipDate": "2023-03-15T10:30:00Z",
"status": "approved",
"complete": true
}'Response
application/json
{ "id": 10, "petId": 198772, "quantity": 7, "shipDate": "2023-03-15T10:30:00Z", "status": "approved", "complete": true }
- Mock serverhttps://vlad.redocly.xyz/_mock/apis/petsstore/store/order/{orderId}
- https://vlad.redocly.xyz/v3/store/order/{orderId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://vlad.redocly.xyz/_mock/apis/petsstore/store/order/{orderId}'Response
<order>
<id>10</id>
<petId>198772</petId>
<quantity>7</quantity>
<shipDate>2023-03-15T10:30:00Z</shipDate>
<status>approved</status>
<complete>true</complete>
</order>- Mock serverhttps://vlad.redocly.xyz/_mock/apis/petsstore/store/order/{orderId}
- https://vlad.redocly.xyz/v3/store/order/{orderId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://vlad.redocly.xyz/_mock/apis/petsstore/store/order/{orderId}'