Given a URL pointing to a file, returns an api URL for fetching the contents of the data.
The relevant provider config
A URL pointing to a file
Converts from: https://gitea.com/a/b/src/branch/branchname/path/to/c.yaml to: https://gitea.com/api/v1/repos/a/b/contents/path/to/c.yaml?ref=branchname
Given a URL pointing to a file, returns an api URL for fetching the contents of the data.