{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "endpoints/proxy-hosts", "title": "Proxy Hosts", "description": "Endpoints relating to Proxy Hosts", "stability": "stable", "type": "object", "definitions": { "id": { "$ref": "../definitions.json#/definitions/id" }, "created_on": { "$ref": "../definitions.json#/definitions/created_on" }, "modified_on": { "$ref": "../definitions.json#/definitions/modified_on" }, "domain_names": { "$ref": "../definitions.json#/definitions/domain_names" }, "forward_ip": { "type": "string", "format": "ipv4" }, "forward_port": { "type": "integer", "minimum": 1, "maximum": 65535 }, "ssl_enabled": { "$ref": "../definitions.json#/definitions/ssl_enabled" }, "ssl_forced": { "$ref": "../definitions.json#/definitions/ssl_forced" }, "ssl_provider": { "$ref": "../definitions.json#/definitions/ssl_provider" }, "meta": { "type": "object", "additionalProperties": false, "properties": { "letsencrypt_email": { "type": "string", "format": "email" }, "letsencrypt_agree": { "type": "boolean" } } } }, "properties": { "id": { "$ref": "#/definitions/id" }, "created_on": { "$ref": "#/definitions/created_on" }, "modified_on": { "$ref": "#/definitions/modified_on" }, "domain_names": { "$ref": "#/definitions/domain_names" }, "forward_ip": { "$ref": "#/definitions/forward_ip" }, "forward_port": { "$ref": "#/definitions/forward_port" }, "ssl_enabled": { "$ref": "#/definitions/ssl_enabled" }, "ssl_forced": { "$ref": "#/definitions/ssl_forced" }, "ssl_provider": { "$ref": "#/definitions/ssl_provider" }, "meta": { "$ref": "#/definitions/meta" } }, "links": [ { "title": "List", "description": "Returns a list of Proxy Hosts", "href": "/nginx/proxy-hosts", "access": "private", "method": "GET", "rel": "self", "http_header": { "$ref": "../examples.json#/definitions/auth_header" }, "targetSchema": { "type": "array", "items": { "$ref": "#/properties" } } }, { "title": "Create", "description": "Creates a new Proxy Host", "href": "/nginx/proxy-hosts", "access": "private", "method": "POST", "rel": "create", "http_header": { "$ref": "../examples.json#/definitions/auth_header" }, "schema": { "type": "object", "required": [ "domain_names", "forward_ip", "forward_port" ], "properties": { "domain_names": { "$ref": "#/definitions/domain_names" }, "forward_ip": { "$ref": "#/definitions/forward_ip" }, "forward_port": { "$ref": "#/definitions/forward_port" }, "ssl_enabled": { "$ref": "#/definitions/ssl_enabled" }, "ssl_forced": { "$ref": "#/definitions/ssl_forced" }, "ssl_provider": { "$ref": "#/definitions/ssl_provider" }, "meta": { "$ref": "#/definitions/meta" } } }, "targetSchema": { "properties": { "$ref": "#/properties" } } }, { "title": "Update", "description": "Updates a existing Proxy Host", "href": "/nginx/proxy-hosts/{definitions.identity.example}", "access": "private", "method": "PUT", "rel": "update", "http_header": { "$ref": "../examples.json#/definitions/auth_header" }, "schema": { "type": "object", "properties": { "domain_names": { "$ref": "#/definitions/domain_names" }, "forward_ip": { "$ref": "#/definitions/forward_ip" }, "forward_port": { "$ref": "#/definitions/forward_port" }, "ssl_enabled": { "$ref": "#/definitions/ssl_enabled" }, "ssl_forced": { "$ref": "#/definitions/ssl_forced" }, "ssl_provider": { "$ref": "#/definitions/ssl_provider" }, "meta": { "$ref": "#/definitions/meta" } } }, "targetSchema": { "properties": { "$ref": "#/properties" } } }, { "title": "Delete", "description": "Deletes a existing Proxy Host", "href": "/nginx/proxy-hosts/{definitions.identity.example}", "access": "private", "method": "DELETE", "rel": "delete", "http_header": { "$ref": "../examples.json#/definitions/auth_header" }, "targetSchema": { "type": "boolean" } } ] }