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.
Introduction
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 OpenAPI Documentation Generator tool.
In addition to OpenAPI Documentation Generator Tool, you can easily test your API
using OpenAPI Tester tool.
OpenAPI Specification
A document (or set of documents) that defines or describes an API. An OpenAPI definition uses and conforms to the OpenAPI Specification.
Cross-Origin Resource Sharing
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.
Authentication
Petstore offers two forms of authentication:
- API Key
- OAuth2 OAuth2
- an open protocol to allow secure authorization in a simple and standard method from
web, mobile and desktop applications.
|
||||||||||||||||||||||||||||
-
requiredstatusStatus values that need to be considered for filter[ query ]
Type array ConstraintsUnique Items : false
Array ItemsItems #/items Source{ "type": "array", "items": { "default": "available", "type": "string", "enum": [ "sold", "pending", "available" ] } }
Type string ConstraintsDefault : available
EnumerationValues sold pending available Source"items": { "default": "available", "type": "string", "enum": [ "sold", "pending", "available" ] }
|
|||||||||||||||||||
|
|||||||||||||||||||
-
requiredpetIdID of pet to update[ path ]
Type object All ofChoices schema : Schema (#/schema/0) schema : Schema (#/schema/1) Source{"type": "integer"}
Type number Source{"type": "integer"}
Type string Source{}
|
|||||||
|
|||||||
-
requiredtagsTags to filter by[ query ]
Type array ConstraintsUnique Items : false
Array ItemsItems #/items Source{ "type": "array", "items": {"type": "string"} }
Type string Source"items": {"type": "string"}
|
|||||||||||||||||||
|
|||||||||||||||||||
-
requiredpetIdID of pet that needs to be updated[ path ]
Type object All ofChoices schema : Schema (#/schema/0) schema : Schema (#/schema/1) Source{"type": "integer"}
Type number Source{"type": "integer"}
Type string Source{}
|
|||||||||||||||||||||||||||||
-
requiredpetIdID of pet to return[ path ]
Type object All ofChoices schema : Schema (#/schema/0) schema : Schema (#/schema/1) Source{"type": "integer"}
Type number Source{"type": "integer"}
Type string Source{}
|
|||||||
|
|||||||
-
requiredpetIdPet id to delete[ path ]
Type object All ofChoices schema : Schema (#/schema/0) schema : Schema (#/schema/1) Source{"type": "integer"}
Type number Source{"type": "integer"}
Type string Source{}
-
optionalapi_key[ header ]
Type string Source{"type": "string"}
|
|||||||||||||||||||||||||||||
|
|||||||
|
|||||||
|
|||||||
-
requiredorderIdID of pet that needs to be fetched[ path ]
Type object All ofChoices schema : Schema (#/schema/0) schema : Schema (#/schema/1) Source{ "type": "integer", "minimum": 1, "maximum": 10 }
Type number ConstraintsMinimum : 1
Maximum : 10
Source{ "type": "integer", "minimum": 1, "maximum": 10 }
Type string Source{}
|
|||||||
|
|||||||
-
requiredorderIdID of the order that needs to be deleted[ path ]
Type object All ofChoices schema : Schema (#/schema/0) schema : Schema (#/schema/1) Source{ "type": "integer", "minimum": 1 }
Type number ConstraintsMinimum : 1
Source{ "type": "integer", "minimum": 1 }
Type string Source{}
-
requiredusernameThe name that needs to be fetched. Use user1 for testing.[ path ]
Type string Source{"type": "string"}
|
|||||||
|
|||||||
-
requiredusernameThe name that needs to be deleted[ path ]
Type string Source{"type": "string"}
-
requiredusernamename that need to be updated[ path ]
Type string Source{"type": "string"}
|
|||||||
-
requiredpasswordThe password for login in clear text[ query ]
Type string Source{"type": "string"}
-
requiredusernameThe user name for login[ query ]
Type string Source{"type": "string"}
|
|||||||
|
|||||||
|
|||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||
|
|||||||
|
|||||||
- implicit
authorizationUrl: http://petstore.swagger.io/oauth/dialogtokenUrl:scopes: