From 655cdc196cf2355aae018575682ba85ec1bda33e Mon Sep 17 00:00:00 2001 From: cyuamber Date: Fri, 29 Nov 2019 16:07:21 +0800 Subject: feat: Completed the interaction logic in the task processing component Change-Id: Ia3b6a4adb00a3c4b1d51ba6e2f63e7713881090e Issue-ID: USECASEUI-352 Signed-off-by: cyuamber --- .../src/app/core/services/slicingTaskServices.ts | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'usecaseui-portal/src/app/core/services') diff --git a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts index fa0a42fd..165bb80e 100644 --- a/usecaseui-portal/src/app/core/services/slicingTaskServices.ts +++ b/usecaseui-portal/src/app/core/services/slicingTaskServices.ts @@ -24,7 +24,10 @@ export class SlicingTaskServices { url = { slicingTaskList: this.baseUrl + "/task/business/pageNo/{pageNo}/pageSize/{pageSize}", taskProcessingStatus: this.baseUrl + '/task/{processingStatus}/business/pageNo/{pageNo}/pageSize/{pageSize}', - auditInfo: this.baseUrl + '/task/{taskId}/auditInfo' + auditInfo: this.baseUrl + '/task/{taskId}/auditInfo', + slicingInstance: this.baseUrl + '/resource/nsi/instances/pageNo/{pageNo}/pageSize/{pageSize}', + slicingSubnetInstance: this.baseUrl + '/resource/nsi/{nsiId}/nssiInstances', + subnetInContext: this.baseUrl + '/resource/nssi/{environmentContext}/instances/pageNo/{pageNo}/pageSize/{pageSize}', } @@ -49,6 +52,23 @@ export class SlicingTaskServices { const url = this.url.auditInfo.replace('{taskId}', taskId); return this.http.get(url); } + getSlicingInstance (pageNo: string, pageSize: string){ + const url = this.url.slicingInstance + .replace("{pageNo}", pageNo) + .replace("{pageSize}", pageSize); + return this.http.get(url); + } + getSlicingSubnetInstance(nsiId: string){ + const url = this.url.slicingSubnetInstance.replace('{nsiId}', nsiId); + return this.http.get(url); + } + getSubnetInContext (context: string, pageNo: string, pageSize: string) { + const url = this.url.subnetInContext + .replace('{environmentContext}', context) + .replace('{pageNo', pageNo) + .replace('{pageSize}', pageSize); + return this.http.get(url); + } } -- cgit 1.2.3-korg