put.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "operationId": "updateDeadHost",
  3. "summary": "Update a 404 Host",
  4. "tags": ["404 Hosts"],
  5. "security": [
  6. {
  7. "BearerAuth": ["dead_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": "404 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/dead-host-object.json#/properties/domain_names"
  34. },
  35. "certificate_id": {
  36. "$ref": "../../../../components/dead-host-object.json#/properties/certificate_id"
  37. },
  38. "ssl_forced": {
  39. "$ref": "../../../../components/dead-host-object.json#/properties/ssl_forced"
  40. },
  41. "hsts_enabled": {
  42. "$ref": "../../../../components/dead-host-object.json#/properties/hsts_enabled"
  43. },
  44. "hsts_subdomains": {
  45. "$ref": "../../../../components/dead-host-object.json#/properties/hsts_subdomains"
  46. },
  47. "http2_support": {
  48. "$ref": "../../../../components/dead-host-object.json#/properties/http2_support"
  49. },
  50. "advanced_config": {
  51. "$ref": "../../../../components/dead-host-object.json#/properties/advanced_config"
  52. },
  53. "meta": {
  54. "$ref": "../../../../components/dead-host-object.json#/properties/meta"
  55. }
  56. }
  57. }
  58. }
  59. }
  60. },
  61. "responses": {
  62. "200": {
  63. "description": "200 response",
  64. "content": {
  65. "application/json": {
  66. "examples": {
  67. "default": {
  68. "value": {
  69. "id": 1,
  70. "created_on": "2024-10-09T01:38:52.000Z",
  71. "modified_on": "2024-10-09T01:46:06.000Z",
  72. "owner_user_id": 1,
  73. "domain_names": ["test.example.com"],
  74. "certificate_id": 0,
  75. "ssl_forced": 0,
  76. "advanced_config": "",
  77. "meta": {
  78. "nginx_online": true,
  79. "nginx_err": null
  80. },
  81. "http2_support": 0,
  82. "enabled": 1,
  83. "hsts_enabled": 0,
  84. "hsts_subdomains": 0,
  85. "owner": {
  86. "id": 1,
  87. "created_on": "2024-10-09T00:59:56.000Z",
  88. "modified_on": "2024-10-09T00:59:56.000Z",
  89. "is_deleted": 0,
  90. "is_disabled": 0,
  91. "email": "[email protected]",
  92. "name": "Administrator",
  93. "nickname": "Admin",
  94. "avatar": "",
  95. "roles": ["admin"]
  96. },
  97. "certificate": null,
  98. "use_default_location": true,
  99. "ipv6": true
  100. }
  101. }
  102. },
  103. "schema": {
  104. "$ref": "../../../../components/dead-host-object.json"
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }