diff options
author | cyuamber <xuranyjy@chinamobile.com> | 2019-09-11 17:19:46 +0800 |
---|---|---|
committer | cyuamber <xuranyjy@chinamobile.com> | 2019-09-11 17:19:57 +0800 |
commit | fa426eee7abcb1a509b263585f4556f661a99d38 (patch) | |
tree | 8c407df60c15ca1847267b2d4302e6629f8006a9 /usecaseui-portal/src/app/core | |
parent | 364ae06e60c429a92d33985ed6016159ab49d495 (diff) |
feat: add post and put mock method
Change-Id: Ibe85c6deacb9f38795f33a4379c33a891bb3ef28
Issue-ID: USECASEUI-306
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/core')
-rw-r--r-- | usecaseui-portal/src/app/core/services/managemencs.service.ts | 13 |
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 }); } } |