Download the output file 

A REST request is made to the GMUS to download the output file. The fileSubDir is optional parameter. Optionally you can delete the file too after downloading using deleteFile request parameter.


URL:  http://<ipAddress>:8070/rest/downloadFile


Parameters (with example values):


{
    "clientAppId" : "XXXXXXXX-1e47-abcd-ba66-XXXXXXXXXXXX",
    "clientUserId": "XXXXXXXX-abcd-4284-aa45-XXXXXXXXXXXX",
    "username"    : "jane.doe@gmail.com",
    "filePath"    : "/home/jDoe/Downloads/output",
    "fileSubDir"  : "users", 
    "fileName"    : "User.txt",
    "deleteFile"  : true
}


or If you provide the Resource Variable as a file path, you need to provide the profileId. You can get the Profile ID from My Organization Page from the GenRocket web platform.


{
    "clientAppId" : "XXXXXXXX-1e47-abcd-ba66-XXXXXXXXXXXX",
    "clientUserId": "XXXXXXXX-abcd-4284-aa45-XXXXXXXXXXXX",
    "username"    : "jane.doe@gmail.com",
    "profileId"   : "GRXX30XXX",
    "filePath"    : "#{resource.output.directory}",
    "fileSubDir"  : "users"        
    "fileName"    : "User.txt"
    "deleteFile"  : false
}