redirection-hosts.json 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "$id": "endpoints/redirection-hosts",
  4. "title": "Redirection Hosts",
  5. "description": "Endpoints relating to Redirection Hosts",
  6. "stability": "stable",
  7. "type": "object",
  8. "definitions": {
  9. "id": {
  10. "$ref": "../definitions.json#/definitions/id"
  11. },
  12. "created_on": {
  13. "$ref": "../definitions.json#/definitions/created_on"
  14. },
  15. "modified_on": {
  16. "$ref": "../definitions.json#/definitions/modified_on"
  17. },
  18. "domain_names": {
  19. "$ref": "../definitions.json#/definitions/domain_names"
  20. },
  21. "forward_domain_name": {
  22. "$ref": "../definitions.json#/definitions/domain_name"
  23. },
  24. "preserve_path": {
  25. "description": "Should the path be preserved",
  26. "example": true,
  27. "type": "boolean"
  28. },
  29. "certificate_id": {
  30. "$ref": "../definitions.json#/definitions/certificate_id"
  31. },
  32. "ssl_forced": {
  33. "$ref": "../definitions.json#/definitions/ssl_forced"
  34. },
  35. "hsts_enabled": {
  36. "$ref": "../definitions.json#/definitions/hsts_enabled"
  37. },
  38. "hsts_subdomains": {
  39. "$ref": "../definitions.json#/definitions/hsts_subdomains"
  40. },
  41. "http2_support": {
  42. "$ref": "../definitions.json#/definitions/http2_support"
  43. },
  44. "block_exploits": {
  45. "$ref": "../definitions.json#/definitions/block_exploits"
  46. },
  47. "advanced_config": {
  48. "type": "string"
  49. },
  50. "enabled": {
  51. "$ref": "../definitions.json#/definitions/enabled"
  52. },
  53. "meta": {
  54. "type": "object"
  55. }
  56. },
  57. "properties": {
  58. "id": {
  59. "$ref": "#/definitions/id"
  60. },
  61. "created_on": {
  62. "$ref": "#/definitions/created_on"
  63. },
  64. "modified_on": {
  65. "$ref": "#/definitions/modified_on"
  66. },
  67. "domain_names": {
  68. "$ref": "#/definitions/domain_names"
  69. },
  70. "forward_domain_name": {
  71. "$ref": "#/definitions/forward_domain_name"
  72. },
  73. "preserve_path": {
  74. "$ref": "#/definitions/preserve_path"
  75. },
  76. "certificate_id": {
  77. "$ref": "#/definitions/certificate_id"
  78. },
  79. "ssl_forced": {
  80. "$ref": "#/definitions/ssl_forced"
  81. },
  82. "hsts_enabled": {
  83. "$ref": "#/definitions/hsts_enabled"
  84. },
  85. "hsts_subdomains": {
  86. "$ref": "#/definitions/hsts_subdomains"
  87. },
  88. "http2_support": {
  89. "$ref": "#/definitions/http2_support"
  90. },
  91. "block_exploits": {
  92. "$ref": "#/definitions/block_exploits"
  93. },
  94. "advanced_config": {
  95. "$ref": "#/definitions/advanced_config"
  96. },
  97. "enabled": {
  98. "$ref": "#/definitions/enabled"
  99. },
  100. "meta": {
  101. "$ref": "#/definitions/meta"
  102. }
  103. },
  104. "links": [
  105. {
  106. "title": "List",
  107. "description": "Returns a list of Redirection Hosts",
  108. "href": "/nginx/redirection-hosts",
  109. "access": "private",
  110. "method": "GET",
  111. "rel": "self",
  112. "http_header": {
  113. "$ref": "../examples.json#/definitions/auth_header"
  114. },
  115. "targetSchema": {
  116. "type": "array",
  117. "items": {
  118. "$ref": "#/properties"
  119. }
  120. }
  121. },
  122. {
  123. "title": "Create",
  124. "description": "Creates a new Redirection Host",
  125. "href": "/nginx/redirection-hosts",
  126. "access": "private",
  127. "method": "POST",
  128. "rel": "create",
  129. "http_header": {
  130. "$ref": "../examples.json#/definitions/auth_header"
  131. },
  132. "schema": {
  133. "type": "object",
  134. "additionalProperties": false,
  135. "required": [
  136. "domain_names",
  137. "forward_domain_name"
  138. ],
  139. "properties": {
  140. "domain_names": {
  141. "$ref": "#/definitions/domain_names"
  142. },
  143. "forward_domain_name": {
  144. "$ref": "#/definitions/forward_domain_name"
  145. },
  146. "preserve_path": {
  147. "$ref": "#/definitions/preserve_path"
  148. },
  149. "certificate_id": {
  150. "$ref": "#/definitions/certificate_id"
  151. },
  152. "ssl_forced": {
  153. "$ref": "#/definitions/ssl_forced"
  154. },
  155. "hsts_enabled": {
  156. "$ref": "#/definitions/hsts_enabled"
  157. },
  158. "hsts_subdomains": {
  159. "$ref": "#/definitions/hsts_enabled"
  160. },
  161. "http2_support": {
  162. "$ref": "#/definitions/http2_support"
  163. },
  164. "block_exploits": {
  165. "$ref": "#/definitions/block_exploits"
  166. },
  167. "advanced_config": {
  168. "$ref": "#/definitions/advanced_config"
  169. },
  170. "meta": {
  171. "$ref": "#/definitions/meta"
  172. }
  173. }
  174. },
  175. "targetSchema": {
  176. "properties": {
  177. "$ref": "#/properties"
  178. }
  179. }
  180. },
  181. {
  182. "title": "Update",
  183. "description": "Updates a existing Redirection Host",
  184. "href": "/nginx/redirection-hosts/{definitions.identity.example}",
  185. "access": "private",
  186. "method": "PUT",
  187. "rel": "update",
  188. "http_header": {
  189. "$ref": "../examples.json#/definitions/auth_header"
  190. },
  191. "schema": {
  192. "type": "object",
  193. "additionalProperties": false,
  194. "properties": {
  195. "domain_names": {
  196. "$ref": "#/definitions/domain_names"
  197. },
  198. "forward_domain_name": {
  199. "$ref": "#/definitions/forward_domain_name"
  200. },
  201. "preserve_path": {
  202. "$ref": "#/definitions/preserve_path"
  203. },
  204. "certificate_id": {
  205. "$ref": "#/definitions/certificate_id"
  206. },
  207. "ssl_forced": {
  208. "$ref": "#/definitions/ssl_forced"
  209. },
  210. "hsts_enabled": {
  211. "$ref": "#/definitions/hsts_enabled"
  212. },
  213. "hsts_subdomains": {
  214. "$ref": "#/definitions/hsts_enabled"
  215. },
  216. "http2_support": {
  217. "$ref": "#/definitions/http2_support"
  218. },
  219. "block_exploits": {
  220. "$ref": "#/definitions/block_exploits"
  221. },
  222. "advanced_config": {
  223. "$ref": "#/definitions/advanced_config"
  224. },
  225. "meta": {
  226. "$ref": "#/definitions/meta"
  227. }
  228. }
  229. },
  230. "targetSchema": {
  231. "properties": {
  232. "$ref": "#/properties"
  233. }
  234. }
  235. },
  236. {
  237. "title": "Delete",
  238. "description": "Deletes a existing Redirection Host",
  239. "href": "/nginx/redirection-hosts/{definitions.identity.example}",
  240. "access": "private",
  241. "method": "DELETE",
  242. "rel": "delete",
  243. "http_header": {
  244. "$ref": "../examples.json#/definitions/auth_header"
  245. },
  246. "targetSchema": {
  247. "type": "boolean"
  248. }
  249. },
  250. {
  251. "title": "Enable",
  252. "description": "Enables a existing Redirection Host",
  253. "href": "/nginx/redirection-hosts/{definitions.identity.example}/enable",
  254. "access": "private",
  255. "method": "POST",
  256. "rel": "update",
  257. "http_header": {
  258. "$ref": "../examples.json#/definitions/auth_header"
  259. },
  260. "targetSchema": {
  261. "type": "boolean"
  262. }
  263. },
  264. {
  265. "title": "Disable",
  266. "description": "Disables a existing Redirection Host",
  267. "href": "/nginx/redirection-hosts/{definitions.identity.example}/disable",
  268. "access": "private",
  269. "method": "POST",
  270. "rel": "update",
  271. "http_header": {
  272. "$ref": "../examples.json#/definitions/auth_header"
  273. },
  274. "targetSchema": {
  275. "type": "boolean"
  276. }
  277. }
  278. ]
  279. }