Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Endpoint: http://localhost:8080/Swagger/rest/swagger.json
- JSON format
- ===================================================================================
- {"swagger":"2.0","info":{"description":"This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.","title":"Swagger Petstore","termsOfService":"http://swagger.io/terms/","contact":{"email":"[email protected]"},"license":{"name":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}},"tags":[{"name":"pet","description":"Everything about your Pets","externalDocs":{"description":"Find out more","url":"http://swagger.io"}},{"name":"store","description":"Access to Petstore orders"},{"name":"user","description":"Operations about user","externalDocs":{"description":"Find out more about our store","url":"http://swagger.io"}},{"name":"message"}],"paths":{"/message/{param}":{"get":{"tags":["message"],"summary":"Print Message","description":"","operationId":"printMessage","parameters":[{"name":"param","in":"path","description":"E-Mail address to lookup for","required":true,"type":"string"}],"responses":{"default":{"description":"successful operation"}}}}},"securityDefinitions":{"petstore_auth":{"type":"oauth2","authorizationUrl":"http://localhost:8002/oauth/dialog","flow":"implicit","scopes":{"pets":"Access to your pets","email":"Access to your email address"}}}}
- ===================================================================================
- YAML format
- ===================================================================================
- ---
- swagger: "2.0"
- info:
- description: "This is a sample server Petstore server. You can find out more about\
- \ Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\
- \ For this sample, you can use the api key `special-key` to test the authorization\
- \ filters."
- title: "Swagger Petstore"
- termsOfService: "http://swagger.io/terms/"
- contact:
- email: "[email protected]"
- license:
- name: "Apache 2.0"
- url: "http://www.apache.org/licenses/LICENSE-2.0.html"
- tags:
- - name: "pet"
- description: "Everything about your Pets"
- externalDocs:
- description: "Find out more"
- url: "http://swagger.io"
- - name: "store"
- description: "Access to Petstore orders"
- - name: "user"
- description: "Operations about user"
- externalDocs:
- description: "Find out more about our store"
- url: "http://swagger.io"
- - name: "message"
- paths:
- /message/{param}:
- get:
- tags:
- - "message"
- summary: "Print Message"
- description: ""
- operationId: "printMessage"
- parameters:
- - name: "param"
- in: "path"
- description: "E-Mail address to lookup for"
- required: true
- type: "string"
- responses:
- default:
- description: "successful operation"
- securityDefinitions:
- petstore_auth:
- type: "oauth2"
- authorizationUrl: "http://localhost:8002/oauth/dialog"
- flow: "implicit"
- scopes:
- pets: "Access to your pets"
- email: "Access to your email address"
- ===================================================================================
Advertisement
Add Comment
Please, Sign In to add comment