openapi-generator/samples/yaml/api-docs.yml

37 lines
1.2 KiB
YAML
Raw Normal View History

2013-12-21 00:42:59 +00:00
apiVersion: 1.0.0
swaggerVersion: "1.2"
apis:
- path: /pet
description: Operations about pets
- path: /store
description: Operations about store
- path: /user
description: Operations about user
authorizations:
oauth2:
type: oauth2
scopes:
- PUBLIC
grantTypes:
implicit:
loginEndpoint:
url: "http://localhost:8002/oauth/dialog"
tokenName: access_code
authorization_code:
tokenRequestEndpoint:
url: "http://localhost:8002/oauth/requestToken"
clientIdName: client_id
clientSecretName: client_secret
tokenEndpoint:
url: "http://localhost:8002/oauth/token"
tokenName: access_code
apiKey:
type: apiKey
passAs: header
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.wordnik.com\">http://swagger.wordnik.com</a> or on irc.freenode.net, #swagger."
2015-06-07 15:18:49 +00:00
termsOfServiceUrl: "http://swagger.io/terms/"
2015-06-07 15:46:11 +00:00
contact: "apiteam@swagger.io"
2013-12-21 00:42:59 +00:00
license: Apache 2.0
licenseUrl: "http://www.apache.org/licenses/LICENSE-2.0.html"