How to use Gc for Http payload
I'm currently using an HTTP payload to copy the RM stream (source) to a target folder, which is working correctly. Similarly, I need to implement the same for global configuration, which requires copying the GC to my target folder. I have some doubts about how we can implement this for GC. Please assist me in resolving this.
String payload = "{\"sourceContext\":{\"sourceItems\":[{\"type\":\"http://www.ibm.com/xmlns/rm/public/1.0/Folder\"," + "\"uri\":\""+sourceRoot+"\"}]," + "\"configuration\":\""+ requestManager.webSite + "/rm/cm/"+requestManager.locationContext+"/"+sourceStreamID+"\"," + "\"component\":\""+sourceComponent+"\"}," + "\"targetContext\":{\"configuration\":\"" + requestManager.webSite + "/rm/cm/"+requestManager.locationContext+"/"+requestManager.streamID+"\"," + "\"type\":\"http://com.ibm.rdm/navigation#Folder\"," + "\"uri\":\"" +requestManager.webSite + "/rm/folders/"+targetFolderID+"\"," + "\"component\":\""+targetComponent+"\"}," + "\"isReportVerbose\":false,\"useRefactorMode\":false,\"includeLinks\":true}";
This code snipped works only for RM not for GC
One answer
If you talk about accessing the GC application, it has a different context root and API. Here are the APIs available: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding