mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
47 lines
893 B
JSON
47 lines
893 B
JSON
|
{
|
||
|
"operationId": "createHost",
|
||
|
"summary": "Create a new Host",
|
||
|
"tags": ["Hosts"],
|
||
|
"requestBody": {
|
||
|
"description": "Host to Create",
|
||
|
"required": true,
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": "{{schema.CreateHostTemplate}}"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"responses": {
|
||
|
"201": {
|
||
|
"description": "201 response",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": ["result"],
|
||
|
"properties": {
|
||
|
"result": {
|
||
|
"$ref": "#/components/schemas/HostTemplateObject"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"examples": {
|
||
|
"default": {
|
||
|
"value": {
|
||
|
"result": {
|
||
|
"id": 10,
|
||
|
"created_on": 1646218093,
|
||
|
"modified_on": 1646218093,
|
||
|
"user_id": 1,
|
||
|
"name": "My proxy template",
|
||
|
"host_type": "proxy",
|
||
|
"template": "# this is a proxy template"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|