mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 13:48:14 -05:00
5e5f0de0e2
- Renamed host templates to nginx templates - Generate upstream templates - Better nginx error reporting when reloading - Use tparse for golang test reporting
60 lines
1.1 KiB
JSON
60 lines
1.1 KiB
JSON
{
|
|
"operationId": "updateNginxTemplate",
|
|
"summary": "Update an existing Nginx Template",
|
|
"tags": ["Nginx Templates"],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "templateID",
|
|
"schema": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"required": true,
|
|
"description": "ID of the Template",
|
|
"example": 1
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"description": "Template details to update",
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": "{{schema.UpdateNginxTemplate}}"
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": ["result"],
|
|
"properties": {
|
|
"result": {
|
|
"$ref": "#/components/schemas/NginxTemplateObject"
|
|
}
|
|
}
|
|
},
|
|
"examples": {
|
|
"default": {
|
|
"value": {
|
|
"result": {
|
|
"id": 1,
|
|
"created_on": 1646218093,
|
|
"modified_on": 1646218093,
|
|
"user_id": 1,
|
|
"name": "My renamed proxy template",
|
|
"type": "proxy",
|
|
"template": "# this is a proxy template"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|