CCVPN Template parsing interface changes 60/87760/4
authorguochuyicmri <guochuyi@chinamobile.com>
Wed, 15 May 2019 11:31:57 +0000 (19:31 +0800)
committerguochuyicmri <guochuyi@chinamobile.com>
Wed, 15 May 2019 12:29:36 +0000 (20:29 +0800)
Change-Id: I3ea95928854c18943fbafb5c1dd515ec2e3ca57e
Issue-ID: USECASEUI-220
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
usecaseui-portal/src/app/myhttp.service.ts

index d5df7b5..7426f44 100644 (file)
@@ -30,7 +30,7 @@ export class MyhttpService {
     serviceType: this.baseUrl + "/uui-lcm/customers/" + "*_*" + "/service-subscriptions",
     servicesTableData: this.baseUrl + '/uui-lcm/service-instances',
     serviceTemplates: this.baseUrl + "/uui-lcm/service-templates",
-    templateParameters: this.baseUrl + "/uui-lcm/fetchTemplateInfo",
+    templateParameters: this.baseUrl + "/uui-lcm/fetchCCVPNTemplateData/*_*",
     e2etemplateParameters: this.baseUrl + "/uui-lcm/service-templates/" + "*_*" + "?toscaModelPath=",
     nstemplateParameters: this.baseUrl + "/uui-lcm/fetchNsTemplateData",
     vimInfo: this.baseUrl + "/uui-lcm/locations/",
@@ -109,7 +109,8 @@ export class MyhttpService {
             packageType: "Service",
             inputs: ""
         };
-        return this.http.post<any>(this.url.templateParameters, body);
+        let url = this.url.templateParameters.replace("*_*", template.uuid);
+        return this.http.post<any>(url, body);
     }
   }