diff options
author | Tao Shen <shentao@chinamobile.com> | 2018-11-15 11:13:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-11-15 11:13:24 +0000 |
commit | c97dae4c8b564c996d38e9f50845856865b68733 (patch) | |
tree | 6139b7e2a06bf348d5c3f915d2f928f3f6e207c6 /usecaseui-portal/src/app/onboard.service.ts | |
parent | a915659e85864826ae33205d34ba9c1eb4cfe8c9 (diff) | |
parent | 39e90e7d7b9c1739d705b6acf497670e82771e26 (diff) |
Merge "Support NS Package Upload for VF-C"
Diffstat (limited to 'usecaseui-portal/src/app/onboard.service.ts')
-rw-r--r-- | usecaseui-portal/src/app/onboard.service.ts | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/usecaseui-portal/src/app/onboard.service.ts b/usecaseui-portal/src/app/onboard.service.ts index dfcd12f8..83ae6394 100644 --- a/usecaseui-portal/src/app/onboard.service.ts +++ b/usecaseui-portal/src/app/onboard.service.ts @@ -50,31 +50,31 @@ export class onboardService { //--------------------------------------------------------------------------------------- /* line up 线上*/ baseUrl = "/api/usecaseui-server/v1/uui-lcm/"; - // baseUrlUp = "/api/usecaseui/server/v1/"; url = { // 数据列表Data onboardTableData: this.baseUrl + "ns-packages", onboardDataVNF: this.baseUrl + "vnf-packages", onboardDataPNF: this.baseUrl + "pnf-packages", - //ns sdc + //ns sdc sdc_nsListData: this.baseUrl + "sdc-ns-packages", // GET - // vnf sdc + // vnf sdc sdc_vnfListData: this.baseUrl + "sdc-vf-packages", // GET - // createnspackages ? TODO - creatensData: this.baseUrl + "createNetworkServiceData", //POST - - // onboard ns sdc data - onboardNs: this.baseUrl + "ns-packages", //POST - //onboard VNF sdc data - onboardVNF: this.baseUrl + "vf-packages", //POST - - //Delete ns package - deleteNspack: this.baseUrl + "deleteNsdPackage?nsdInfoId=", - // Delete Vnf vfc package - deleteVnfPack: this.baseUrl + "deleteVnfPackage?vnfPkgId=", - // Delete Pnf package - deletePnfPack: this.baseUrl + "deletePnfPackage?pnfPkgId=", + // createnspackages ? TODO + creatensData: this.baseUrl + "_jsonData", //POST + + // onboard ns sdc data + onboardNs: this.baseUrl + "ns-packages", //POST + //onboard VNF sdc data + onboardVNF: this.baseUrl + "vf-packages", //POST + + //Delete ns package + deleteNspack: this.baseUrl + "deleteNsdPackage?nsdInfoId=", + // Delete Vnf vfc package + deleteVnfPack: this.baseUrl + "deleteVnfPackage?vnfPkgId=", + // Delete Pnf package + deletePnfPack: this.baseUrl + "deletePnfPackage?pnfPkgId=", + // // download ns package // downloadNsData: this.baseUrl + "downLoadNsPackage?nsdInfoId=XXXXX", // //download vnf package @@ -82,8 +82,8 @@ export class onboardService { } - //-----------------------------------Function-start------------------------------------------------------ - /* 查询数据列表 */ + //-----------------------------------Function-local-start------------------------------------------------------ + /* Query data list */ // NS Data getOnboardTableData() { // return this.http.get<any>(this.url.onboardTableData); @@ -102,7 +102,7 @@ export class onboardService { getSDC_VNFTableData() { return this.http.get<any>(this.url["sdc_vnfListData"]); } - + // PNF Data getOnboardTablePnfData() { return this.http.get<any>(this.url.onboardDataPNF); @@ -111,7 +111,7 @@ export class onboardService { //create--Get the id after dragging the file before uploading //on-line post getCreatensData(url_upId,requestBody) { - return this.http.post<any>(this.url.creatensData.replace("_jsonData",url_upId),requestBody); //线上 + return this.http.post<any>(this.url.creatensData.replace("_jsonData",url_upId),requestBody); //on-line } //create--Get the id after dragging the file before uploading //local json get @@ -135,14 +135,14 @@ export class onboardService { // local test // return this.http.get<any>(this.url.deleteNspack); // Online test - return this.http.delete<any>(this.url["deleteNspack"] + paramsObj); + return this.http.delete<any>(this.url.deleteNspack + paramsObj); } // Delete Vnf vfc package deleteVnfIdData(paramsObj) { // return this.http.get<any>(this.url.deleteVnfPack); //online test - return this.http.delete<any>(this.url["deleteVnfpack"] + paramsObj); + return this.http.delete<any>(this.url.deleteVnfPack + paramsObj); } // Delete Pnf package |