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.
curl -i -X POST \ https://redocly.com/_mock/openapi/petstore/pet \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "id": 0, "category": { "id": 0, "name": "string" }, "name": "doggie", "photoUrls": [ "string" ], "tags": [ { "id": 0, "name": "string" } ], "status": "available" }'
curl -i -X PUT \ https://redocly.com/_mock/openapi/petstore/pet \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: application/json' \ -d '{ "id": 0, "category": { "id": 0, "name": "string" }, "name": "doggie", "photoUrls": [ "string" ], "tags": [ { "id": 0, "name": "string" } ], "status": "available" }'
curl -i -X GET \ 'https://redocly.com/_mock/openapi/petstore/pet/findByStatus?status=available' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
No response example
curl -i -X GET \ 'https://redocly.com/_mock/openapi/petstore/pet/{petId}' \ -H 'api_key: YOUR_API_KEY_HERE'
No response example
curl -i -X POST \ 'https://redocly.com/_mock/openapi/petstore/pet/{petId}/uploadImage' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Content-Type: multipart/form-data' \ -F additionalMetadata=string \ -F file=string
{ "code": 0, "type": "string", "message": "string" }