This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key special-key
to test the authorization filters.
This is a sample server Petstore server. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key special-key
to test the authorization filters.
This API is documented in OpenAPI format and is based on Petstore sample provided by swagger.io team. It was extended to illustrate features of generator-openapi-repo tool and ReDoc documentation. In addition to standard OpenAPI syntax we use a few vendor extensions.
This API is documented in OpenAPI format and is based on Petstore sample provided by swagger.io team. It was extended to illustrate features of generator-openapi-repo tool and ReDoc documentation. In addition to standard OpenAPI syntax we use a few vendor extensions.
This API features Cross-Origin Resource Sharing (CORS) implemented in compliance with W3C spec. And that allows cross-domain communication from the browser. All responses have a wildcard same-origin which makes them completely public and accessible to everyone, including any code on any site.
Created user object
User password, MUST contain a mix of upper and lower case letters, as well as digits
"drowssaP123"
User phone number in international format
"+1-202-555-0192"
curl -i -X POST \ https://redocly.com/_mock/docs/openapi/petstore/user \ -H 'Content-Type: application/json' \ -d '{ "pet": { "category": { "name": "string", "sub": { "prop1": "string" } }, "name": "Guru", "photoUrls": [ "string" ], "friend": {}, "tags": [ { "name": "string" } ], "status": "available", "petType": "string" }, "username": "John78", "firstName": "John", "lastName": "Smith", "email": "john.smith@example.com", "password": "drowssaP123", "phone": "+1-202-555-0192", "userStatus": 0 }'
curl -i -X GET \ 'https://redocly.com/_mock/docs/openapi/petstore/user/{username}'
{ "id": 0, "pet": { "id": 0, "category": { … }, "name": "Guru", "photoUrls": [ … ], "friend": {}, "tags": [ … ], "status": "available", "petType": "string" }, "username": "John78", "firstName": "John", "lastName": "Smith", "email": "john.smith@example.com", "password": "drowssaP123", "phone": "+1-202-555-0192", "userStatus": 0 }
Updated user object
User password, MUST contain a mix of upper and lower case letters, as well as digits
"drowssaP123"
User phone number in international format
"+1-202-555-0192"
curl -i -X PUT \ 'https://redocly.com/_mock/docs/openapi/petstore/user/{username}' \ -H 'Content-Type: application/json' \ -d '{ "pet": { "category": { "name": "string", "sub": { "prop1": "string" } }, "name": "Guru", "photoUrls": [ "string" ], "friend": {}, "tags": [ { "name": "string" } ], "status": "available", "petType": "string" }, "username": "John78", "firstName": "John", "lastName": "Smith", "email": "john.smith@example.com", "password": "drowssaP123", "phone": "+1-202-555-0192", "userStatus": 0 }'
curl -i -X DELETE \ 'https://redocly.com/_mock/docs/openapi/petstore/user/{username}'
List of user object
User password, MUST contain a mix of upper and lower case letters, as well as digits
"drowssaP123"
User phone number in international format
"+1-202-555-0192"
curl -i -X POST \ https://redocly.com/_mock/docs/openapi/petstore/user/createWithArray \ -H 'Content-Type: application/json' \ -d '{}'
List of user object
User password, MUST contain a mix of upper and lower case letters, as well as digits
"drowssaP123"
User phone number in international format
"+1-202-555-0192"
curl -i -X POST \ https://redocly.com/_mock/docs/openapi/petstore/user/createWithList \ -H 'Content-Type: application/json' \ -d '{}'
curl -i -X GET \ 'https://redocly.com/_mock/docs/openapi/petstore/user/login?password=string&username=string'
"OK"
curl -i -X GET \ https://redocly.com/_mock/docs/openapi/petstore/user/logout