getBitbucketServerFileFetchUrl()
Home > @backstage/integration
> getBitbucketServerFileFetchUrl
Given a URL pointing to a file on a provider, returns a URL that is suitable for fetching the contents of the data.
Signature:
function getBitbucketServerFileFetchUrl(url: string, config: BitbucketServerIntegrationConfig): string;
Parameters
Parameter |
Type |
Description |
---|---|---|
url |
string |
A URL pointing to a file |
config |
The relevant provider config |
string
Remarks
Converts from: https://bitbucket.company.com/projectname/reponame/src/main/file.yaml to: https://bitbucket.company.com/rest/api/1.0/project/projectname/reponame/raw/file.yaml?at=main