jbjares2

Untitled

Feb 2nd, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. Endpoint: http://localhost:8080/Swagger/rest/swagger.json
  2.  
  3. JSON format
  4. ===================================================================================
  5. {"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"}}}}
  6. ===================================================================================
  7.  
  8. YAML format
  9. ===================================================================================
  10. ---
  11. swagger: "2.0"
  12. info:
  13. description: "This is a sample server Petstore server. You can find out more about\
  14. \ Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/).\
  15. \ For this sample, you can use the api key `special-key` to test the authorization\
  16. \ filters."
  17. title: "Swagger Petstore"
  18. termsOfService: "http://swagger.io/terms/"
  19. contact:
  20. license:
  21. name: "Apache 2.0"
  22. url: "http://www.apache.org/licenses/LICENSE-2.0.html"
  23. tags:
  24. - name: "pet"
  25. description: "Everything about your Pets"
  26. externalDocs:
  27. description: "Find out more"
  28. url: "http://swagger.io"
  29. - name: "store"
  30. description: "Access to Petstore orders"
  31. - name: "user"
  32. description: "Operations about user"
  33. externalDocs:
  34. description: "Find out more about our store"
  35. url: "http://swagger.io"
  36. - name: "message"
  37. paths:
  38. /message/{param}:
  39. get:
  40. tags:
  41. - "message"
  42. summary: "Print Message"
  43. description: ""
  44. operationId: "printMessage"
  45. parameters:
  46. - name: "param"
  47. in: "path"
  48. description: "E-Mail address to lookup for"
  49. required: true
  50. type: "string"
  51. responses:
  52. default:
  53. description: "successful operation"
  54. securityDefinitions:
  55. petstore_auth:
  56. type: "oauth2"
  57. authorizationUrl: "http://localhost:8002/oauth/dialog"
  58. flow: "implicit"
  59. scopes:
  60. pets: "Access to your pets"
  61. email: "Access to your email address"
  62.  
  63. ===================================================================================
Advertisement
Add Comment
Please, Sign In to add comment