summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/core
diff options
context:
space:
mode:
authorTao Shen <shentao@chinamobile.com>2019-09-11 09:33:50 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-11 09:33:50 +0000
commitd56bca3670049515d8a69e56d9f692e0f70c276b (patch)
tree993bc05c8aa9ec24a6b4f5e191e34fcb77164cc5 /usecaseui-portal/src/app/core
parent1790dca317395495df2ea72ac4e088d4347bbacf (diff)
parentfa426eee7abcb1a509b263585f4556f661a99d38 (diff)
Merge "feat: add post and put mock method"
Diffstat (limited to 'usecaseui-portal/src/app/core')
-rw-r--r--usecaseui-portal/src/app/core/services/managemencs.service.ts13
1 files changed, 7 insertions, 6 deletions
diff --git a/usecaseui-portal/src/app/core/services/managemencs.service.ts b/usecaseui-portal/src/app/core/services/managemencs.service.ts
index b7aff872..cd293d40 100644
--- a/usecaseui-portal/src/app/core/services/managemencs.service.ts
+++ b/usecaseui-portal/src/app/core/services/managemencs.service.ts
@@ -20,10 +20,11 @@ export class ManagemencsService {
//mock Currently unadjustable api interface
deleteCustomer: this.baseUrl + "/uui-lcm/customers", /* delete */
createCustomer: this.baseUrl + "/uui-lcm/customers/", /* put */
- createServiceType: this.baseUrl + "/uui-lcm/customers/*_*/service-subscriptions/*+*", /* put */
getCustomerresourceVersion: this.baseUrl + "/uui-lcm/customers/*_*", /* get */
- getServiceTypeResourceVersion: this.baseUrl + "/uui-lcm/customers/*_*/service-subscriptions/*+*",
- deleteServiceType: this.baseUrl + "/uui-lcm/customers/*_*/service-subscriptions/*+*",
+
+ createServiceType: this.baseUrl + "/uui-lcm/customers/*_*/service-subscriptions/*+*", /* put */
+ getServiceTypeResourceVersion: this.baseUrl + "/uui-lcm/customers/*_*/service-subscriptions/*+*", /* get */
+ deleteServiceType: this.baseUrl + "/uui-lcm/customers/*_*/service-subscriptions/*+*", /* delete */
};
//The following APIs are optimizable ----------------------------------
@@ -41,7 +42,7 @@ export class ManagemencsService {
deleteSelectCustomer(paramsObj) {
let url = this.url.deleteCustomer;
let params = new HttpParams({ fromObject: paramsObj });
- return this.http.delete(url,{params});
+ return this.http.delete(url, { params });
}
//The following APIs are not optimizable ---------------------------------
@@ -84,10 +85,10 @@ export class ManagemencsService {
let customerId = paramsObj.customerId.id,
ServiceType = paramsObj.ServiceType,
version = {
- "resourceVersion":paramsObj.version
+ "resourceVersion": paramsObj.version
};
let url = this.url.deleteServiceType.replace("*_*", customerId).replace("*+*", ServiceType);
let params = new HttpParams({ fromObject: version });
- return this.http.delete(url,{params});
+ return this.http.delete(url, { params });
}
}