60 lines
1.8 KiB
JSON
60 lines
1.8 KiB
JSON
{
|
|
"apiVersion": "1.0.0",
|
|
"swaggerVersion": "1.2",
|
|
"apis": [
|
|
{
|
|
"path": "http://localhost:8081/v1.2/petstore/pet.json",
|
|
"description": "Operations about pets"
|
|
},
|
|
{
|
|
"path": "http://localhost:8081/v1.2/petstore/user.json",
|
|
"description": "Operations about user"
|
|
},
|
|
{
|
|
"path": "http://localhost:8081/v1.2/petstore/store.json",
|
|
"description": "Operations about store"
|
|
}
|
|
],
|
|
"authorizations": {
|
|
"oauth2": {
|
|
"type": "oauth2",
|
|
"scopes": [
|
|
{
|
|
"scope": "email",
|
|
"description": "Access to your email address"
|
|
},
|
|
{
|
|
"scope": "pets",
|
|
"description": "Access to your pets"
|
|
}
|
|
],
|
|
"grantTypes": {
|
|
"implicit": {
|
|
"loginEndpoint": {
|
|
"url": "http://petstore.swagger.io/oauth/dialog"
|
|
},
|
|
"tokenName": "access_token"
|
|
},
|
|
"authorization_code": {
|
|
"tokenRequestEndpoint": {
|
|
"url": "http://petstore.swagger.io/oauth/requestToken",
|
|
"clientIdName": "client_id",
|
|
"clientSecretName": "client_secret"
|
|
},
|
|
"tokenEndpoint": {
|
|
"url": "http://petstore.swagger.io/oauth/token",
|
|
"tokenName": "access_code"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"info": {
|
|
"title": "Swagger Sample App",
|
|
"description": "This is a sample server Petstore server. You can find out more about Swagger \n at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample,\n you can use the api key \"special-key\" to test the authorization filters",
|
|
"termsOfServiceUrl": "http://helloreverb.com/terms/",
|
|
"contact": "apiteam@swagger.io",
|
|
"license": "Apache 2.0",
|
|
"licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html"
|
|
}
|
|
} |