summaryrefslogtreecommitdiffstats
path: root/usecaseui-holmes/src/main
diff options
context:
space:
mode:
authorGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-21 19:04:23 +0800
committerGuangrong Fu <fu.guangrong@zte.com.cn>2017-09-21 19:04:23 +0800
commit2952621c1967ca29449e33a908aa1725253bf677 (patch)
treee8adb965286cd0ef3f89963bab7cb519150c5cf9 /usecaseui-holmes/src/main
parentefa0010e75ef069fdcfbe7d256d0a638f1603f91 (diff)
Fix the URL for the DELETE operation
Change-Id: I0010f65aa41469913f1f3f551f6d71ebb0869eaf Issue-ID: HOLMES-64 Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'usecaseui-holmes/src/main')
-rw-r--r--usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts b/usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts
index 076c9517..c0ca2ad2 100644
--- a/usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts
+++ b/usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts
@@ -112,9 +112,8 @@ export class AlarmRuleService {
}
public delete(ruleid: string): Promise<void> {
- let ru = { 'ruleid': ruleid };
- const url = `${this.ruleUrl}`;
- return this.http.delete(url, { body: JSON.stringify(ru), headers: this.headers })
+ const url = `${this.ruleUrl}` + '/' + ruleid;
+ return this.http.delete(url, { headers: this.headers })
.toPromise()
.then(res => {