diff options
author | 2017-09-21 19:04:23 +0800 | |
---|---|---|
committer | 2017-09-21 19:04:23 +0800 | |
commit | 2952621c1967ca29449e33a908aa1725253bf677 (patch) | |
tree | e8adb965286cd0ef3f89963bab7cb519150c5cf9 /usecaseui-holmes/src/main/webapp | |
parent | efa0010e75ef069fdcfbe7d256d0a638f1603f91 (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/webapp')
-rw-r--r-- | usecaseui-holmes/src/main/webapp/alarm/app/correlation-ruleList/alarmRule.service.ts | 5 |
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 => { |