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.
curl -i -X POST \ https://redocly.com/_mock/docs/openapi/petstore/pet \ -H 'Accept-Language: en-AU' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -b cookieParam=0 \ -d '{ "category": { "name": "string", "sub": { "prop1": "string" } }, "name": "Guru", "photoUrls": [ "string" ], "friend": {}, "tags": [ { "name": "string" } ], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }'
curl -i -X PUT \ https://redocly.com/_mock/docs/openapi/petstore/pet \ -H 'Accept-Language: en-AU' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -b cookieParam=0 \ -d '{ "category": { "name": "string", "sub": { "prop1": "string" } }, "name": "Guru", "photoUrls": [ "string" ], "friend": {}, "tags": [ { "name": "string" } ], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }'
curl -i -X GET \ 'https://redocly.com/_mock/docs/openapi/petstore/pet/{petId}' \ -H 'api_key: YOUR_API_KEY_HERE'
{ "id": 0, "category": { "id": 0, "name": "string", "sub": { … } }, "name": "Guru", "photoUrls": [ "string" ], "friend": {}, "tags": [ { … } ], "status": "available", "petType": "cat", "huntingSkill": "adventurous" }
curl -i -X POST \ 'https://redocly.com/_mock/docs/openapi/petstore/pet/{petId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d name=string \ -d status=string
curl -i -X DELETE \ 'https://redocly.com/_mock/docs/openapi/petstore/pet/{petId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'api_key: string'
curl -i -X POST \ 'https://redocly.com/_mock/docs/openapi/petstore/pet/{petId}/uploadImage' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/octet-stream' \ -d string
{ "code": 0, "type": "string", "message": "string" }
curl -i -X GET \ 'https://redocly.com/_mock/docs/openapi/petstore/pet/findByStatus?status=available' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
[ { "id": 0, "category": { … }, "name": "Guru", "photoUrls": [ … ], "friend": {}, "tags": [ … ], "status": "available", "petType": "string" } ]