From: Sandeep J Date: Fri, 20 Jul 2018 08:23:22 +0000 (+0530) Subject: refactor payload creation in parameter.ts X-Git-Tag: 1.4.0~91 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F21%2F57021%2F3;p=appc%2Fcdt.git refactor payload creation in parameter.ts refactor payload creation in getPD parameter.ts using createPayloadForRetrieve method in utility.service.ts Issue-ID: APPC-1099 Change-Id: I976dfebfe60a123784853a7294125cf6075a653b Signed-off-by: Sandeep J --- diff --git a/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.ts b/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.ts index 20204fd..19a5f6d 100644 --- a/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.ts +++ b/src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.ts @@ -190,15 +190,7 @@ export class ParameterComponent implements OnInit { public getPD() { let result: any; - let input = { - 'input': { - 'design-request': { - 'request-id': this.apiToken, - 'action': 'getArtifact', - 'payload': '{"userID": "' + this.userId + '", "vnf-type" : "' + this.vnfType + '", "artifact-type":"APPC-CONFIG", "artifact-name":"' + this.artifact_fileName + '"}' - } - } - }; + let input=this.utilService.createPayloadForRetrieve(false, this.action, this.vnfType,this.artifact_fileName); let artifactContent: any; return this.httpService.post({ url: environment.getDesigns,