diff options
author | Tao Shen <shentao@chinamobile.com> | 2017-09-26 07:04:19 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-09-26 07:04:19 +0000 |
commit | acff56a270278f682b3ae3c04b2ba85855e11f62 (patch) | |
tree | 592bd1a6dd1c50c8110aa41a0198cb57fe6ada3b | |
parent | 31cb401df7e9f896afd08a70a01d3b41999ad83f (diff) | |
parent | 2952621c1967ca29449e33a908aa1725253bf677 (diff) |
Merge "Fix the URL for the DELETE operation"
-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 => { |