post.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. {
  2. "operationId": "create404Host",
  3. "summary": "Create a 404 Host",
  4. "tags": ["404 Hosts"],
  5. "security": [
  6. {
  7. "BearerAuth": ["dead_hosts"]
  8. }
  9. ],
  10. "requestBody": {
  11. "description": "404 Host Payload",
  12. "required": true,
  13. "content": {
  14. "application/json": {
  15. "schema": {
  16. "type": "object",
  17. "additionalProperties": false,
  18. "required": ["domain_names"],
  19. "properties": {
  20. "domain_names": {
  21. "$ref": "../../../components/dead-host-object.json#/properties/domain_names"
  22. },
  23. "certificate_id": {
  24. "$ref": "../../../components/dead-host-object.json#/properties/certificate_id"
  25. },
  26. "ssl_forced": {
  27. "$ref": "../../../components/dead-host-object.json#/properties/ssl_forced"
  28. },
  29. "hsts_enabled": {
  30. "$ref": "../../../components/dead-host-object.json#/properties/hsts_enabled"
  31. },
  32. "hsts_subdomains": {
  33. "$ref": "../../../components/dead-host-object.json#/properties/hsts_subdomains"
  34. },
  35. "http2_support": {
  36. "$ref": "../../../components/dead-host-object.json#/properties/http2_support"
  37. },
  38. "advanced_config": {
  39. "$ref": "../../../components/dead-host-object.json#/properties/advanced_config"
  40. },
  41. "meta": {
  42. "$ref": "../../../components/dead-host-object.json#/properties/meta"
  43. }
  44. }
  45. }
  46. }
  47. }
  48. },
  49. "responses": {
  50. "201": {
  51. "description": "201 response",
  52. "content": {
  53. "application/json": {
  54. "examples": {
  55. "default": {
  56. "value": {
  57. "id": 1,
  58. "created_on": "2024-10-09T01:38:52.000Z",
  59. "modified_on": "2024-10-09T01:38:52.000Z",
  60. "owner_user_id": 1,
  61. "domain_names": ["test.example.com"],
  62. "certificate_id": 0,
  63. "ssl_forced": false,
  64. "advanced_config": "",
  65. "meta": {},
  66. "http2_support": false,
  67. "enabled": true,
  68. "hsts_enabled": false,
  69. "hsts_subdomains": false,
  70. "certificate": null,
  71. "owner": {
  72. "id": 1,
  73. "created_on": "2024-10-09T00:59:56.000Z",
  74. "modified_on": "2024-10-09T00:59:56.000Z",
  75. "is_deleted": false,
  76. "is_disabled": false,
  77. "email": "[email protected]",
  78. "name": "Administrator",
  79. "nickname": "Admin",
  80. "avatar": "",
  81. "roles": ["admin"]
  82. }
  83. }
  84. }
  85. },
  86. "schema": {
  87. "$ref": "../../../components/dead-host-object.json"
  88. }
  89. }
  90. }
  91. }
  92. }
  93. }