getHarnessArchiveUrl()
Home > @backstage/integration
> getHarnessArchiveUrl
Given a URL pointing to a repository/path, returns a URL for archive contents of the repository.
Signature:
function getHarnessArchiveUrl(config: HarnessIntegrationConfig, url: string): string;
Parameters
Parameter |
Type |
Description |
---|---|---|
config |
The relevant provider config | |
url |
string |
A URL pointing to a repository/path |
string
Remarks
Converts from: https://qa.harness.io/ng/account/accountId/module/code/orgs/orgId/projects/projectName/repos/repoName/files/branch/\~/fileName to: https://qa.harness.io/gateway/code/api/v1/repos/accountId/orgId/projectName/repoName/+/archive/branch.zip?routingId=accountId