vpn.swagger.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "swagger": "2.0",
  3. "info": {
  4. "title": "vpn.proto",
  5. "version": "version not set"
  6. },
  7. "schemes": [
  8. "http",
  9. "https"
  10. ],
  11. "consumes": [
  12. "application/json"
  13. ],
  14. "produces": [
  15. "application/json"
  16. ],
  17. "paths": {
  18. "/v1/vpn/init": {
  19. "post": {
  20. "operationId": "Init",
  21. "responses": {
  22. "200": {
  23. "description": "",
  24. "schema": {
  25. "$ref": "#/definitions/pbVPNInitResponse"
  26. }
  27. }
  28. },
  29. "parameters": [
  30. {
  31. "name": "body",
  32. "in": "body",
  33. "required": true,
  34. "schema": {
  35. "$ref": "#/definitions/pbVPNInitRequest"
  36. }
  37. }
  38. ],
  39. "tags": [
  40. "VPNService"
  41. ]
  42. }
  43. },
  44. "/v1/vpn/status": {
  45. "post": {
  46. "operationId": "Status",
  47. "responses": {
  48. "200": {
  49. "description": "",
  50. "schema": {
  51. "$ref": "#/definitions/pbVPNStatusResponse"
  52. }
  53. }
  54. },
  55. "parameters": [
  56. {
  57. "name": "body",
  58. "in": "body",
  59. "required": true,
  60. "schema": {
  61. "$ref": "#/definitions/pbVPNStatusRequest"
  62. }
  63. }
  64. ],
  65. "tags": [
  66. "VPNService"
  67. ]
  68. }
  69. }
  70. },
  71. "definitions": {
  72. "pbVPNInitRequest": {
  73. "type": "object",
  74. "properties": {
  75. "Hostname": {
  76. "type": "string"
  77. },
  78. "Port": {
  79. "type": "string"
  80. }
  81. }
  82. },
  83. "pbVPNInitResponse": {
  84. "type": "object"
  85. },
  86. "pbVPNStatusRequest": {
  87. "type": "object"
  88. },
  89. "pbVPNStatusResponse": {
  90. "type": "object",
  91. "properties": {
  92. "Name": {
  93. "type": "string"
  94. },
  95. "SerialNumber": {
  96. "type": "string"
  97. },
  98. "Hostname": {
  99. "type": "string"
  100. },
  101. "Port": {
  102. "type": "string"
  103. },
  104. "Cert": {
  105. "type": "string"
  106. },
  107. "CACert": {
  108. "type": "string"
  109. },
  110. "Net": {
  111. "type": "string"
  112. },
  113. "Mask": {
  114. "type": "string"
  115. },
  116. "CreatedAt": {
  117. "type": "string"
  118. }
  119. }
  120. }
  121. }
  122. }