aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui
diff options
context:
space:
mode:
authorArielk <Ariel.Kenan@amdocs.com>2018-08-14 10:19:20 +0300
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-08-14 13:54:30 +0000
commit57f4bfa334d91b445e1999a5504fda4f43d0a1e4 (patch)
treebbfe905497a6455c3610b387851fb795155d1d95 /catalog-ui
parent1929d75c6856e212979c3a9c7950dfd717d3bb98 (diff)
Patch for artifact delivery POST
Change-Id: If36201ba3f9a97dba46d839d8d9cfa5af533fed9 Issue-ID: SDC-1645 Signed-off-by: Arielk <Ariel.Kenan@amdocs.com>
Diffstat (limited to 'catalog-ui')
-rw-r--r--catalog-ui/configurations/dev.js2
-rw-r--r--catalog-ui/configurations/prod.js2
-rw-r--r--catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts5
-rw-r--r--catalog-ui/src/app/ng2/services/workflow.service.ts5
4 files changed, 6 insertions, 8 deletions
diff --git a/catalog-ui/configurations/dev.js b/catalog-ui/configurations/dev.js
index 1dc8c81c3e..3833e209ed 100644
--- a/catalog-ui/configurations/dev.js
+++ b/catalog-ui/configurations/dev.js
@@ -49,7 +49,7 @@ const SDC_CONFIG = {
"root": "/sdc1/feProxy/rest",
"no_proxy_root": "/sdc1/rest",
"workflow_root": "/sdc1/feProxy/wf",
- "POST_workflow_artifact": "/v1/catalog",
+ "POST_workflow_artifact": "sdc/v1/catalog",
"PUT_service": "/v1/catalog/services/:id/metadata",
"GET_download_artifact": "/v1/catalog/",
"GET_SDC_Version": "/version",
diff --git a/catalog-ui/configurations/prod.js b/catalog-ui/configurations/prod.js
index cd94f53c13..65b3737e62 100644
--- a/catalog-ui/configurations/prod.js
+++ b/catalog-ui/configurations/prod.js
@@ -49,7 +49,7 @@ const SDC_CONFIG = {
"root": "/sdc1/feProxy/rest",
"no_proxy_root": "/sdc1/rest",
"workflow_root": "/sdc1/feProxy/wf",
- "POST_workflow_artifact": "/v1/catalog",
+ "POST_workflow_artifact": "sdc/v1/catalog",
"PUT_service": "/v1/catalog/services/:id/metadata",
"GET_download_artifact": "/v1/catalog/",
"GET_SDC_Version": "/version",
diff --git a/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts b/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts
index 010a1f9dda..b3e06c33cf 100644
--- a/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts
+++ b/catalog-ui/src/app/ng2/pages/interface-operation/interface-operation.page.component.ts
@@ -157,15 +157,14 @@ export class InterfaceOperationComponent {
private createOperation = (operation: OperationModel): any => {
this.ComponentServiceNg2.createInterfaceOperation(this.component, operation).subscribe((response: CreateOperationResponse) => {
this.openOperation = null;
-
+ this.operationList.push(new OperationModel(response));
if (response.workflowId) {
const resourceId = this.component.uuid;
const operationId = response.uniqueId;
const workflowId = response.workflowId;
const versionId = response.workflowVersionId;
const artifactId = response.artifactUUID;
-
- this.WorkflowServiceNg2.associateWorkflowArtifact(resourceId, operationId, workflowId, versionId, artifactId);
+ this.WorkflowServiceNg2.associateWorkflowArtifact(resourceId, operationId, workflowId, versionId, artifactId).subscribe();
}
});
}
diff --git a/catalog-ui/src/app/ng2/services/workflow.service.ts b/catalog-ui/src/app/ng2/services/workflow.service.ts
index b880955d27..ae06a39713 100644
--- a/catalog-ui/src/app/ng2/services/workflow.service.ts
+++ b/catalog-ui/src/app/ng2/services/workflow.service.ts
@@ -34,13 +34,12 @@ export class WorkflowServiceNg2 {
public updateWorkflowVersion(workflowId: string, versionId: string, payload: any): Observable<any> {
return this.http.put(this.baseUrl + '/workflows/' + workflowId + '/versions/' + versionId, payload)
.map((res:Response) => {
- return res;
+ return res.json();
});
}
public associateWorkflowArtifact(resourceUuid, operationId, workflowId, workflowVersionId, artifactUuid): Observable<any> {
- return this.http.post(this.baseUrl + '/workflows/' + workflowId + '/versions/' + workflowVersionId + '/artifact-deliveries',
- {
+ return this.http.post(this.baseUrl + '/workflows/' + workflowId + '/versions/' + workflowVersionId + '/artifact-deliveries', {
endpoint: this.catalogBaseUrl + '/resources/' + resourceUuid + '/interfaces/' + operationId + '/artifacts/' + artifactUuid,
method: 'POST'
})