From 2952621c1967ca29449e33a908aa1725253bf677 Mon Sep 17 00:00:00 2001 From: Guangrong Fu Date: Thu, 21 Sep 2017 19:04:23 +0800 Subject: Fix the URL for the DELETE operation Change-Id: I0010f65aa41469913f1f3f551f6d71ebb0869eaf Issue-ID: HOLMES-64 Signed-off-by: Guangrong Fu --- .../main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'usecaseui-holmes/src') 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 { - 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 => { -- cgit 1.2.3-korg