apigee/edge-launchpad

Proxy Name is bound to folder name

malagappan opened this issue · 0 comments

If a new name is defined in the descriptor .xml, that is not used. When we have multiple versions deployed in same org, we would need Proxy Name and base path to be different. To change proxy name, if we create a new folder then in source revision we will loose the capability to compare the sources between versions. When we have multiple API versions, the more likely scenario is; the folder and descriptor file names remain same; but the content is different (API Proxy name is different). The change is required in Edge-Launchpad as well as in ApigeeTool. A sample implementation could be:
in config.yml for proxy items:
name:
apiName:
in proxy.js->deploy():
items[i].descriptor = items[i].name;
items[i].api = items[i].apiName || items[i].name;

in apigeeTool->deployproxy.js->createApiProxy():

if (opts.descriptor) {
rootEntryName = opts.descriptor + '.xml';
} else {
rootEntryName = opts.api + '.xml';
}