feat:api optimization for service instance functions 07/94007/1
authorcyuamber <xuranyjy@chinamobile.com>
Wed, 21 Aug 2019 04:18:24 +0000 (12:18 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Wed, 21 Aug 2019 04:18:28 +0000 (12:18 +0800)
Change-Id: I94ce280b783658440e45f7e6cf951553307756c1
Issue-ID: USECASEUI-307
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/myhttp.service.ts

index e81a7d3..778b739 100644 (file)
@@ -35,7 +35,6 @@ export class MyhttpService {
     nstemplateParameters: this.baseUrl + "/uui-lcm/fetchNsTemplateData",
     vimInfo: this.baseUrl + "/uui-lcm/locations/",
     sdnControllers: this.baseUrl + "/uui-lcm/sdnc-controllers/",
-    addressData: this.baseUrl + "/uui-sotn/getOssInvenory",
     createService: this.baseUrl + "/uui-lcm/services",
     ns_createService: this.baseUrl + "/uui-lcm/createNetworkServiceInstance",
     ns_createService2: this.baseUrl + "/uui-lcm/instantiateNetworkServiceInstance",
@@ -50,11 +49,12 @@ export class MyhttpService {
     e2e_nsdata: this.baseUrl + "/getServiceInstanceById/customerId/",
     updateccvpn:this.baseUrl + "/uui-lcm/services/updateService/",
 
+    //The following api is about ccvpn details topology
     allottedResource: this.baseUrl + "/uui-sotn/getAllottedResources",
     pnfDetail: this.baseUrl + "/uui-sotn/getPnfInfo/",
     connectivity: this.baseUrl + "/uui-sotn/getConnectivityInfo/",
     vpnBinding: this.baseUrl + "/uui-sotn/getPinterfaceByVpnId/",
-  }
+  };
 
   // serviceTable list
   getServicesTableData(paramsObj): Observable<HttpResponse<servicesTableData>> {
@@ -94,7 +94,6 @@ export class MyhttpService {
 
   //Get template input parameters
   getTemplateParameters(type, template) {
-    // let url = this.url.templateParameters.replace("*_*",type) + template.toscaModelURL;  //Local simulation
     if (type == "ns") {
       let body = {
         csarId: template.id,
@@ -137,9 +136,6 @@ export class MyhttpService {
   }
 
   updateccvpn(id,requestBody){
-    console.log(id);
-    console.log(requestBody);
-      //return this.http.get<any>(this.url.updateccvpn + id);  //local
        return this.http.put<any>(this.url.updateccvpn + id,requestBody);// online
   }
   // Delete interface
@@ -155,15 +151,12 @@ export class MyhttpService {
         'serviceType': obj.serviceType.name
       }
     };
-    // return this.http.get<any>(this.url.deleteService);  //Local simulation
     return this.http.delete<any>(this.url.deleteService + obj.serviceInstanceId, httpOptions);
   }
   nsDeleteInstance(id) {
-    // return this.http.get<any>(this.url.ns_deleteService);  //Local simulation
     return this.http.delete<any>(this.url.ns_deleteService + id);
   }
   stopNsService(id, requestBody) {  //You need to terminate before deleting
-    // return this.http.get<any>(this.url.ns_stopService);  //Local simulation
     return this.http.post<any>(this.url.ns_stopService + id, requestBody);
   }
 
@@ -171,13 +164,11 @@ export class MyhttpService {
     return this.http.get<any>(this.url.vnfInfo + id);
   }
   healNsService(id, requestBody) {
-    // return this.http.get<any>(this.url.ns_healService);  //Local simulation
     return this.http.post<any>(this.url.ns_healService + id, requestBody);
   }
 
   // scale
   scaleE2eService(id, requestBody) {
-    // return this.http.get<any>(this.url.e2eScale + id);
     return this.http.post<any>(this.url.e2eScale + id, requestBody);
   }
   getE2e_nsData(paramsObj) {