Everything about your Pets
- Logs out current logged in user session
Create user
Creates list of users with given input array
Logs user into the system
Get user by user name
Update user
Delete user
Logs out current logged i...
Swagger Petstore - OpenAPI 3.0 (1.0.20-SNAPSHOT)
You can find out more about
Swagger at http://swagger.io. In the third iteration of the 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:
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore
https://phronesis-creativara.redocly.app/v3
- Mock serverhttps://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user
- https://phronesis-creativara.redocly.app/v3/user
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- application/xml
- application/x-www-form-urlencoded
curl -i -X POST \
https://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/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
}'Response
- application/json
- application/xml
{ "id": 10, "username": "theUser", "firstName": "John", "lastName": "James", "email": "john@email.com", "password": 12345, "phone": 12345, "userStatus": 1 }
- Mock serverhttps://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/createWithList
- https://phronesis-creativara.redocly.app/v3/user/createWithList
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/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
}
]'Response
- application/xml
- application/json
<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 serverhttps://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/login
- https://phronesis-creativara.redocly.app/v3/user/login
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/login?username=string&password=string'Response
- application/xml
- application/json
<root>string</root>- Mock serverhttps://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/logout
- https://phronesis-creativara.redocly.app/v3/user/logout
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/logout- Mock serverhttps://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/{username}
- https://phronesis-creativara.redocly.app/v3/user/{username}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/{username}'Response
- application/xml
- application/json
<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>Body
- application/json
- application/xml
- application/x-www-form-urlencoded
Update an existent user in the store
- Mock serverhttps://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/{username}
- https://phronesis-creativara.redocly.app/v3/user/{username}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- application/xml
- application/x-www-form-urlencoded
curl -i -X PUT \
'https://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/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 serverhttps://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/{username}
- https://phronesis-creativara.redocly.app/v3/user/{username}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://phronesis-creativara.redocly.app/_mock/products/api-hub/petstore/user/{username}'