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/
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/user
https://innovario.apishowdown.com/v3/user
- 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/user \
-H 'Content-Type: application/json' \
-d '{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": 12345,
"phone": 12345,
"userStatus": 1
}'
{ "id": 10, "username": "theUser", "firstName": "John", "lastName": "James", "email": "john@email.com", "password": 12345, "phone": 12345, "userStatus": 1 }
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/user/createWithList
https://innovario.apishowdown.com/v3/user/createWithList
- 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/user/createWithList \
-H 'Content-Type: application/json' \
-d '[
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": 12345,
"phone": 12345,
"userStatus": 1
}
]'
<user>
<id>10</id>
<username>theUser</username>
<firstName>John</firstName>
<lastName>James</lastName>
<email>john@email.com</email>
<password>12345</password>
<phone>12345</phone>
<userStatus>1</userStatus>
</user>
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/user/login
https://innovario.apishowdown.com/v3/user/login
- 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/user/login?username=string&password=string'
<root>string</root>
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/user/logout
https://innovario.apishowdown.com/v3/user/logout
- 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/user/logout
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/user/{username}
https://innovario.apishowdown.com/v3/user/{username}
- 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/user/{username}'
<user>
<id>10</id>
<username>theUser</username>
<firstName>John</firstName>
<lastName>James</lastName>
<email>john@email.com</email>
<password>12345</password>
<phone>12345</phone>
<userStatus>1</userStatus>
</user>
- application/json
- application/xml
- application/x-www-form-urlencoded
Update an existent user in the store
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/user/{username}
https://innovario.apishowdown.com/v3/user/{username}
- 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/user/{username}' \
-H 'Content-Type: application/json' \
-d '{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": 12345,
"phone": 12345,
"userStatus": 1
}'
- Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/pet-store/openapi/user/{username}
https://innovario.apishowdown.com/v3/user/{username}
- 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/user/{username}'