25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

60 lines
1.8 KiB

  1. {
  2. "apiVersion": "1.0.0",
  3. "swaggerVersion": "1.2",
  4. "apis": [
  5. {
  6. "path": "http://localhost:8081/v1.2/petstore/pet.json",
  7. "description": "Operations about pets"
  8. },
  9. {
  10. "path": "http://localhost:8081/v1.2/petstore/user.json",
  11. "description": "Operations about user"
  12. },
  13. {
  14. "path": "http://localhost:8081/v1.2/petstore/store.json",
  15. "description": "Operations about store"
  16. }
  17. ],
  18. "authorizations": {
  19. "oauth2": {
  20. "type": "oauth2",
  21. "scopes": [
  22. {
  23. "scope": "email",
  24. "description": "Access to your email address"
  25. },
  26. {
  27. "scope": "pets",
  28. "description": "Access to your pets"
  29. }
  30. ],
  31. "grantTypes": {
  32. "implicit": {
  33. "loginEndpoint": {
  34. "url": "http://petstore.swagger.io/oauth/dialog"
  35. },
  36. "tokenName": "access_token"
  37. },
  38. "authorization_code": {
  39. "tokenRequestEndpoint": {
  40. "url": "http://petstore.swagger.io/oauth/requestToken",
  41. "clientIdName": "client_id",
  42. "clientSecretName": "client_secret"
  43. },
  44. "tokenEndpoint": {
  45. "url": "http://petstore.swagger.io/oauth/token",
  46. "tokenName": "access_code"
  47. }
  48. }
  49. }
  50. }
  51. },
  52. "info": {
  53. "title": "Swagger Sample App",
  54. "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",
  55. "termsOfServiceUrl": "http://swagger.io/terms/",
  56. "contact": "apiteam@swagger.io",
  57. "license": "Apache 2.0",
  58. "licenseUrl": "http://www.apache.org/licenses/LICENSE-2.0.html"
  59. }
  60. }