mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 05:38:15 -05:00
5e5f0de0e2
- Renamed host templates to nginx templates - Generate upstream templates - Better nginx error reporting when reloading - Use tparse for golang test reporting
47 lines
923 B
JSON
47 lines
923 B
JSON
{
|
|
"operationId": "createNginxTemplate",
|
|
"summary": "Create a new Nginx Template",
|
|
"tags": ["Nginx Templates"],
|
|
"requestBody": {
|
|
"description": "Template to Create",
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": "{{schema.CreateNginxTemplate}}"
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"201": {
|
|
"description": "201 response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": ["result"],
|
|
"properties": {
|
|
"result": {
|
|
"$ref": "#/components/schemas/NginxTemplateObject"
|
|
}
|
|
}
|
|
},
|
|
"examples": {
|
|
"default": {
|
|
"value": {
|
|
"result": {
|
|
"id": 10,
|
|
"created_on": 1646218093,
|
|
"modified_on": 1646218093,
|
|
"user_id": 1,
|
|
"name": "My proxy template",
|
|
"type": "proxy",
|
|
"template": "# this is a proxy template"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|