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>'
<id>0</id> <category> <id>0</id> <name>string</name> </category> <name>doggie</name> <photoUrls>string</photoUrls> <tags> <id>0</id> <name>string</name> </tags> <status>available</status>
curl -i -X GET \ 'https://redocly.com/_mock/openapi/petstore/pet/{petId}' \ -H 'api_key: YOUR_API_KEY_HERE'
<id>0</id> <category> <id>0</id> <name>string</name> </category> <name>doggie</name> <photoUrls>string</photoUrls> <tags> <id>0</id> <name>string</name> </tags> <status>available</status>
curl -i -X POST \ 'https://redocly.com/_mock/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/openapi/petstore/pet/{petId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'api_key: string'