Skip to content

Commit

Permalink
Merge pull request #305 from openinfradev/notification_delete
Browse files Browse the repository at this point in the history
feature. add delete API for system-notification
  • Loading branch information
cho4036 authored Mar 27, 2024
2 parents e230fe3 + 274a4e7 commit 7c21235
Show file tree
Hide file tree
Showing 17 changed files with 531 additions and 62 deletions.
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 @@ -6837,6 +6876,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 @@ -6899,6 +6945,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 @@ -6944,6 +6997,13 @@ const docTemplate = `{
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -6975,6 +7035,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 @@ -7010,6 +7077,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 @@ -7044,6 +7125,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 @@ -7140,6 +7228,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 @@ -7174,6 +7269,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 @@ -7330,6 +7432,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 @@ -7411,6 +7520,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 @@ -6831,6 +6870,13 @@
],
"summary": "Get SystemNotificationRules",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "pageSize",
Expand Down Expand Up @@ -6893,6 +6939,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 @@ -6938,6 +6991,13 @@
"name": "name",
"in": "path",
"required": true
},
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
}
],
"responses": {
Expand Down Expand Up @@ -6969,6 +7029,13 @@
],
"summary": "Get SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationRuleId",
Expand Down Expand Up @@ -7004,6 +7071,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 @@ -7038,6 +7119,13 @@
],
"summary": "Delete SystemNotificationRule",
"parameters": [
{
"type": "string",
"description": "organizationId",
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationRuleId",
Expand Down Expand Up @@ -7134,6 +7222,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 @@ -7168,6 +7263,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 @@ -7324,6 +7426,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 @@ -7405,6 +7514,13 @@
"name": "organizationId",
"in": "path",
"required": true
},
{
"type": "string",
"description": "systemNotificationId",
"name": "systemNotificationId",
"in": "path",
"required": true
}
],
"responses": {
Expand Down
Loading

0 comments on commit 7c21235

Please sign in to comment.