redirection-host-object.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {
  2. "type": "object",
  3. "description": "Redirection Host object",
  4. "required": [
  5. "id",
  6. "created_on",
  7. "modified_on",
  8. "owner_user_id",
  9. "domain_names",
  10. "forward_http_code",
  11. "forward_scheme",
  12. "forward_domain_name",
  13. "preserve_path",
  14. "certificate_id",
  15. "ssl_forced",
  16. "hsts_enabled",
  17. "hsts_subdomains",
  18. "http2_support",
  19. "block_exploits",
  20. "advanced_config",
  21. "enabled",
  22. "meta"
  23. ],
  24. "additionalProperties": false,
  25. "properties": {
  26. "id": {
  27. "$ref": "../common.json#/properties/id"
  28. },
  29. "created_on": {
  30. "$ref": "../common.json#/properties/created_on"
  31. },
  32. "modified_on": {
  33. "$ref": "../common.json#/properties/modified_on"
  34. },
  35. "owner_user_id": {
  36. "$ref": "../common.json#/properties/user_id"
  37. },
  38. "domain_names": {
  39. "$ref": "../common.json#/properties/domain_names"
  40. },
  41. "forward_http_code": {
  42. "description": "Redirect HTTP Status Code",
  43. "type": "integer",
  44. "minimum": 300,
  45. "maximum": 308,
  46. "example": 302
  47. },
  48. "forward_scheme": {
  49. "type": "string",
  50. "enum": [
  51. "auto",
  52. "http",
  53. "https"
  54. ],
  55. "example": "http"
  56. },
  57. "forward_domain_name": {
  58. "description": "Domain Name",
  59. "type": "string",
  60. "pattern": "^(?:[^.*]+\\.?)+[^.]$",
  61. "example": "jc21.com"
  62. },
  63. "preserve_path": {
  64. "description": "Should the path be preserved",
  65. "type": "boolean",
  66. "example": true
  67. },
  68. "certificate_id": {
  69. "$ref": "../common.json#/properties/certificate_id"
  70. },
  71. "ssl_forced": {
  72. "$ref": "../common.json#/properties/ssl_forced"
  73. },
  74. "hsts_enabled": {
  75. "$ref": "../common.json#/properties/hsts_enabled"
  76. },
  77. "hsts_subdomains": {
  78. "$ref": "../common.json#/properties/hsts_subdomains"
  79. },
  80. "http2_support": {
  81. "$ref": "../common.json#/properties/http2_support"
  82. },
  83. "block_exploits": {
  84. "$ref": "../common.json#/properties/block_exploits"
  85. },
  86. "advanced_config": {
  87. "type": "string",
  88. "example": ""
  89. },
  90. "enabled": {
  91. "$ref": "../common.json#/properties/enabled"
  92. },
  93. "meta": {
  94. "type": "object",
  95. "example": {
  96. "nginx_online": true,
  97. "nginx_err": null
  98. }
  99. },
  100. "certificate": {
  101. "oneOf": [
  102. {
  103. "type": "null",
  104. "example": null
  105. },
  106. {
  107. "$ref": "./certificate-object.json"
  108. }
  109. ],
  110. "example": null
  111. },
  112. "owner": {
  113. "$ref": "./user-object.json"
  114. }
  115. }
  116. }