From: Guangrong Fu Date: Thu, 21 Sep 2017 11:04:23 +0000 (+0800) Subject: Fix the URL for the DELETE operation X-Git-Tag: v1.1.0~33^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=2952621c1967ca29449e33a908aa1725253bf677;p=usecase-ui.git Fix the URL for the DELETE operation Change-Id: I0010f65aa41469913f1f3f551f6d71ebb0869eaf Issue-ID: HOLMES-64 Signed-off-by: Guangrong Fu --- 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 => {