Everything about your Pet
Swagger Petstore - OpenAPI 3.0 (1.0.20-SNAPSHOT)
This is a sample Pet 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 a pet 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:
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/
https://innovario.apishowdown.com/v3/
- application/json
- application/xml
- application/x-www-form-urlencoded
Create a new pet in the store
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet
https://innovario.apishowdown.com/v3/pet
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}'
<pet>
<id>10</id>
<name>doggie</name>
<category>
<id>1</id>
<name>Dogs</name>
</category>
<photoUrls>
<photoUrl>string</photoUrl>
</photoUrls>
<tags>
<tag>
<id>0</id>
<name>string</name>
</tag>
</tags>
<status>available</status>
</pet>
- application/json
- application/xml
- application/x-www-form-urlencoded
Update an existent pet in the store
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet
https://innovario.apishowdown.com/v3/pet
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"string"
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"status": "available"
}'
<pet>
<id>10</id>
<name>doggie</name>
<category>
<id>1</id>
<name>Dogs</name>
</category>
<photoUrls>
<photoUrl>string</photoUrl>
</photoUrls>
<tags>
<tag>
<id>0</id>
<name>string</name>
</tag>
</tags>
<status>available</status>
</pet>
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/findByStatus
https://innovario.apishowdown.com/v3/pet/findByStatus
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/findByStatus?status=available' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
<pet>
<id>10</id>
<name>doggie</name>
<category>
<id>1</id>
<name>Dogs</name>
</category>
<photoUrls>
<photoUrl>string</photoUrl>
</photoUrls>
<tags>
<tag>
<id>0</id>
<name>string</name>
</tag>
</tags>
<status>available</status>
</pet>
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/{petId}
https://innovario.apishowdown.com/v3/pet/{petId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/{petId}' \
-H 'api_key: YOUR_API_KEY_HERE'
<pet>
<id>10</id>
<name>doggie</name>
<category>
<id>1</id>
<name>Dogs</name>
</category>
<photoUrls>
<photoUrl>string</photoUrl>
</photoUrls>
<tags>
<tag>
<id>0</id>
<name>string</name>
</tag>
</tags>
<status>available</status>
</pet>
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/{petId}
https://innovario.apishowdown.com/v3/pet/{petId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/{petId}?name=string&status=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/{petId}
https://innovario.apishowdown.com/v3/pet/{petId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/{petId}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'api_key: string'
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/{petId}/uploadImage
https://innovario.apishowdown.com/v3/pet/{petId}/uploadImage
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/pet/{petId}/uploadImage?additionalMetadata=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/octet-stream' \
-d string
{ "code": 0, "type": "string", "message": "string" }