mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-24 13:48:14 -05:00
51 lines
962 B
JSON
51 lines
962 B
JSON
{
|
|
"operationId": "getHostTemplate",
|
|
"summary": "Get a Host Template object by ID",
|
|
"tags": ["Hosts"],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "hostTemplateID",
|
|
"schema": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"required": true,
|
|
"description": "ID of the Host Template",
|
|
"example": 1
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "200 response",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"required": ["result"],
|
|
"properties": {
|
|
"result": {
|
|
"$ref": "#/components/schemas/HostTemplateObject"
|
|
}
|
|
}
|
|
},
|
|
"examples": {
|
|
"default": {
|
|
"value": {
|
|
"result": {
|
|
"id": 1,
|
|
"created_on": 1646218093,
|
|
"modified_on": 1646218093,
|
|
"user_id": 1,
|
|
"name": "Default Host Template",
|
|
"host_type": "proxy",
|
|
"template": "# this is a proxy template"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|