put.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {
  2. "operationId": "updateProxyHost",
  3. "summary": "Update a Proxy Host",
  4. "tags": ["Proxy Hosts"],
  5. "security": [
  6. {
  7. "BearerAuth": ["proxy_hosts"]
  8. }
  9. ],
  10. "parameters": [
  11. {
  12. "in": "path",
  13. "name": "hostID",
  14. "schema": {
  15. "type": "integer",
  16. "minimum": 1
  17. },
  18. "required": true,
  19. "example": 2
  20. }
  21. ],
  22. "requestBody": {
  23. "description": "Proxy Host Payload",
  24. "required": true,
  25. "content": {
  26. "application/json": {
  27. "schema": {
  28. "type": "object",
  29. "additionalProperties": false,
  30. "minProperties": 1,
  31. "properties": {
  32. "domain_names": {
  33. "$ref": "../../../../components/proxy-host-object.json#/properties/domain_names"
  34. },
  35. "forward_scheme": {
  36. "$ref": "../../../../components/proxy-host-object.json#/properties/forward_scheme"
  37. },
  38. "forward_host": {
  39. "$ref": "../../../../components/proxy-host-object.json#/properties/forward_host"
  40. },
  41. "forward_port": {
  42. "$ref": "../../../../components/proxy-host-object.json#/properties/forward_port"
  43. },
  44. "certificate_id": {
  45. "$ref": "../../../../components/proxy-host-object.json#/properties/certificate_id"
  46. },
  47. "ssl_forced": {
  48. "$ref": "../../../../components/proxy-host-object.json#/properties/ssl_forced"
  49. },
  50. "hsts_enabled": {
  51. "$ref": "../../../../components/proxy-host-object.json#/properties/hsts_enabled"
  52. },
  53. "hsts_subdomains": {
  54. "$ref": "../../../../components/proxy-host-object.json#/properties/hsts_subdomains"
  55. },
  56. "http2_support": {
  57. "$ref": "../../../../components/proxy-host-object.json#/properties/http2_support"
  58. },
  59. "block_exploits": {
  60. "$ref": "../../../../components/proxy-host-object.json#/properties/block_exploits"
  61. },
  62. "caching_enabled": {
  63. "$ref": "../../../../components/proxy-host-object.json#/properties/caching_enabled"
  64. },
  65. "allow_websocket_upgrade": {
  66. "$ref": "../../../../components/proxy-host-object.json#/properties/allow_websocket_upgrade"
  67. },
  68. "access_list_id": {
  69. "$ref": "../../../../components/proxy-host-object.json#/properties/access_list_id"
  70. },
  71. "advanced_config": {
  72. "$ref": "../../../../components/proxy-host-object.json#/properties/advanced_config"
  73. },
  74. "enabled": {
  75. "$ref": "../../../../components/proxy-host-object.json#/properties/enabled"
  76. },
  77. "meta": {
  78. "$ref": "../../../../components/proxy-host-object.json#/properties/meta"
  79. },
  80. "locations": {
  81. "$ref": "../../../../components/proxy-host-object.json#/properties/locations"
  82. }
  83. }
  84. }
  85. }
  86. }
  87. },
  88. "responses": {
  89. "200": {
  90. "description": "200 response",
  91. "content": {
  92. "application/json": {
  93. "examples": {
  94. "default": {
  95. "value": {
  96. "id": 1,
  97. "created_on": "2024-10-08T23:23:03.000Z",
  98. "modified_on": "2024-10-08T23:26:37.000Z",
  99. "owner_user_id": 1,
  100. "domain_names": ["test.example.com"],
  101. "forward_host": "192.168.0.10",
  102. "forward_port": 8989,
  103. "access_list_id": 0,
  104. "certificate_id": 0,
  105. "ssl_forced": false,
  106. "caching_enabled": false,
  107. "block_exploits": false,
  108. "advanced_config": "",
  109. "meta": {
  110. "nginx_online": true,
  111. "nginx_err": null
  112. },
  113. "allow_websocket_upgrade": false,
  114. "http2_support": false,
  115. "forward_scheme": "http",
  116. "enabled": true,
  117. "hsts_enabled": false,
  118. "hsts_subdomains": false,
  119. "owner": {
  120. "id": 1,
  121. "created_on": "2024-10-07T22:43:55.000Z",
  122. "modified_on": "2024-10-08T12:52:54.000Z",
  123. "is_deleted": false,
  124. "is_disabled": false,
  125. "email": "[email protected]",
  126. "name": "Administrator",
  127. "nickname": "some guy",
  128. "avatar": "//www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?default=mm",
  129. "roles": ["admin"]
  130. },
  131. "certificate": null,
  132. "access_list": null
  133. }
  134. }
  135. },
  136. "schema": {
  137. "$ref": "../../../../components/proxy-host-object.json"
  138. }
  139. }
  140. }
  141. }
  142. }
  143. }