diff options
author | Sandeep J <sandeejh@in.ibm.com> | 2018-07-20 13:53:22 +0530 |
---|---|---|
committer | Takamune Cho <tc012c@att.com> | 2018-07-26 13:11:20 +0000 |
commit | 2b6863266a3bb293d61a9c39532718a3cc22c266 (patch) | |
tree | 98c09a0f3b7d1d202d8d0c481b18b18c6bc31bea | |
parent | b3686fc1d9abd792669c95567db9b9da5eeb8ede (diff) |
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 <sandeejh@in.ibm.com>
-rw-r--r-- | src/app/vnfs/build-artifacts/parameter-definitions/parameter.component.ts | 10 |
1 files changed, 1 insertions, 9 deletions
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, |