Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature. add delete API for system-notification #305

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 116 additions & 0 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,13 @@ const docTemplate = `{
],
"summary": "Update SystemNotificationTemplate",
"parameters": [
{
"type": "string",
"description": "systemNotificationTemplateId",
"name": "systemNotificationTemplateId",
"in": "path",
"required": true
},
{
"description": "Update alert template request",
"name": "body",
Expand All @@ -1381,6 +1388,38 @@ const docTemplate = `{
"description": "OK"
}
}
},
"delete": {
"security": [
{
"JWT": []
}
],
"description": "Delete SystemNotificationTemplate",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SystemNotificationTemplates"
],
"summary": "Delete SystemNotificationTemplate",
"parameters": [
{
"type": "string",
"description": "systemNotificationTemplateId",
"name": "systemNotificationTemplateId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/app-groups": {
Expand Down Expand Up @@ -6419,6 +6458,13 @@ const docTemplate = `{
],
"summary": "Get SystemNotificationRules",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pageSize",
Expand Down Expand Up @@ -6481,6 +6527,13 @@ const docTemplate = `{
],
"summary": "Create SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "create stack template request",
"name": "body",
Expand Down Expand Up @@ -6526,6 +6579,13 @@ const docTemplate = `{
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -6557,6 +6617,13 @@ const docTemplate = `{
],
"summary": "Get SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationRuleId",
Expand Down Expand Up @@ -6592,6 +6659,20 @@ const docTemplate = `{
],
"summary": "Update SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationRuleId",
"name": "systemNotificationRuleId",
"in": "path",
"required": true
},
{
"description": "Update systemNotificationRule request",
"name": "body",
Expand Down Expand Up @@ -6626,6 +6707,13 @@ const docTemplate = `{
],
"summary": "Delete SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationRuleId",
Expand Down Expand Up @@ -6722,6 +6810,13 @@ const docTemplate = `{
],
"summary": "Remove organization systemNotificationTemplates",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "Remove organization systemNotification templates request",
"name": "body",
Expand Down Expand Up @@ -6756,6 +6851,13 @@ const docTemplate = `{
],
"summary": "Add organization systemNotificationTemplates",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "Add organization systemNotification templates request",
"name": "body",
Expand Down Expand Up @@ -6912,6 +7014,13 @@ const docTemplate = `{
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationId",
"name": "systemNotificationId",
"in": "path",
"required": true
},
{
"description": "Update cloud setting request",
"name": "body",
Expand Down Expand Up @@ -6993,6 +7102,13 @@ const docTemplate = `{
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationId",
"name": "systemNotificationId",
"in": "path",
"required": true
}
],
"responses": {
Expand Down
116 changes: 116 additions & 0 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,13 @@
],
"summary": "Update SystemNotificationTemplate",
"parameters": [
{
"type": "string",
"description": "systemNotificationTemplateId",
"name": "systemNotificationTemplateId",
"in": "path",
"required": true
},
{
"description": "Update alert template request",
"name": "body",
Expand All @@ -1375,6 +1382,38 @@
"description": "OK"
}
}
},
"delete": {
"security": [
{
"JWT": []
}
],
"description": "Delete SystemNotificationTemplate",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"SystemNotificationTemplates"
],
"summary": "Delete SystemNotificationTemplate",
"parameters": [
{
"type": "string",
"description": "systemNotificationTemplateId",
"name": "systemNotificationTemplateId",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK"
}
}
}
},
"/app-groups": {
Expand Down Expand Up @@ -6413,6 +6452,13 @@
],
"summary": "Get SystemNotificationRules",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pageSize",
Expand Down Expand Up @@ -6475,6 +6521,13 @@
],
"summary": "Create SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "create stack template request",
"name": "body",
Expand Down Expand Up @@ -6520,6 +6573,13 @@
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -6551,6 +6611,13 @@
],
"summary": "Get SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationRuleId",
Expand Down Expand Up @@ -6586,6 +6653,20 @@
],
"summary": "Update SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationRuleId",
"name": "systemNotificationRuleId",
"in": "path",
"required": true
},
{
"description": "Update systemNotificationRule request",
"name": "body",
Expand Down Expand Up @@ -6620,6 +6701,13 @@
],
"summary": "Delete SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationRuleId",
Expand Down Expand Up @@ -6716,6 +6804,13 @@
],
"summary": "Remove organization systemNotificationTemplates",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "Remove organization systemNotification templates request",
"name": "body",
Expand Down Expand Up @@ -6750,6 +6845,13 @@
],
"summary": "Add organization systemNotificationTemplates",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"description": "Add organization systemNotification templates request",
"name": "body",
Expand Down Expand Up @@ -6906,6 +7008,13 @@
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationId",
"name": "systemNotificationId",
"in": "path",
"required": true
},
{
"description": "Update cloud setting request",
"name": "body",
Expand Down Expand Up @@ -6987,6 +7096,13 @@
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationId",
"name": "systemNotificationId",
"in": "path",
"required": true
}
],
"responses": {
Expand Down
Loading
Loading