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>
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,