mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
61 lines
1.3 KiB
JSON
61 lines
1.3 KiB
JSON
{
|
|
"operationId": "createHost",
|
|
"summary": "Create a new Host",
|
|
"tags": ["Hosts"],
|
|
"requestBody": {
|
|
"description": "Host to Create",
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": "{{schema.CreateHost}}"
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "201 response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": ["result"],
|
|
"properties": {
|
|
"result": {
|
|
"$ref": "#/components/schemas/HostObject"
|
|
}
|
|
}
|
|
},
|
|
"examples": {
|
|
"default": {
|
|
"value": {
|
|
"result": {
|
|
"id": 1,
|
|
"created_at": 1645700556000,
|
|
"updated_at": 1645700556000,
|
|
"user_id": 2,
|
|
"type": "proxy",
|
|
"nginx_template_id": 1,
|
|
"listen_interface": "",
|
|
"domain_names": ["jc21.com"],
|
|
"upstream_id": 0,
|
|
"certificate_id": 0,
|
|
"access_list_id": 0,
|
|
"ssl_forced": false,
|
|
"caching_enabled": false,
|
|
"block_exploits": false,
|
|
"allow_websocket_upgrade": false,
|
|
"http2_support": false,
|
|
"hsts_enabled": false,
|
|
"hsts_subdomains": false,
|
|
"paths": "",
|
|
"advanced_config": "",
|
|
"is_disabled": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|