2022-05-11 22:47:31 +00:00
|
|
|
{
|
2023-01-04 05:36:56 +00:00
|
|
|
"operationId": "createNginxTemplate",
|
|
|
|
"summary": "Create a new Nginx Template",
|
|
|
|
"tags": ["Nginx Templates"],
|
2022-05-11 22:47:31 +00:00
|
|
|
"requestBody": {
|
2023-01-04 05:36:56 +00:00
|
|
|
"description": "Template to Create",
|
2022-05-11 22:47:31 +00:00
|
|
|
"required": true,
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
2023-01-04 05:36:56 +00:00
|
|
|
"schema": "{{schema.CreateNginxTemplate}}"
|
2022-05-11 22:47:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"responses": {
|
|
|
|
"201": {
|
|
|
|
"description": "201 response",
|
|
|
|
"content": {
|
|
|
|
"application/json": {
|
|
|
|
"schema": {
|
|
|
|
"required": ["result"],
|
|
|
|
"properties": {
|
|
|
|
"result": {
|
2023-01-04 05:36:56 +00:00
|
|
|
"$ref": "#/components/schemas/NginxTemplateObject"
|
2022-05-11 22:47:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"examples": {
|
|
|
|
"default": {
|
|
|
|
"value": {
|
|
|
|
"result": {
|
|
|
|
"id": 10,
|
2023-05-28 22:50:27 +00:00
|
|
|
"created_at": 1646218093000,
|
|
|
|
"updated_at": 1646218093000,
|
2022-05-11 22:47:31 +00:00
|
|
|
"user_id": 1,
|
|
|
|
"name": "My proxy template",
|
2023-01-04 05:36:56 +00:00
|
|
|
"type": "proxy",
|
2022-05-11 22:47:31 +00:00
|
|
|
"template": "# this is a proxy template"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|