summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2017-09-26 07:04:19 +0000
committerGerrit Code Review <gerrit@onap.org>2017-09-26 07:04:19 +0000
commitacff56a270278f682b3ae3c04b2ba85855e11f62 (patch)
tree592bd1a6dd1c50c8110aa41a0198cb57fe6ada3b
parent31cb401df7e9f896afd08a70a01d3b41999ad83f (diff)
parent2952621c1967ca29449e33a908aa1725253bf677 (diff)
Merge "Fix the URL for the DELETE operation"
-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 => {