I have several repositories with RAML, Swagger, and json-schemas hosted in corporate bitbucket (on-prem deployed, previously called Atlassian Stash). These files have relative references to other files.
I need to load these hosted files from web application from specified bitbucket namespace, repo & branch, without implementing any additional server with hosted checked out files (this requires one more server, synchronisation, maintenance, and further corresponding problems).
Also, I want to perform direct requests to bitbucket (stash), because this will bring all access features support out of the box: you will able to see only files you have access to.
Best way to implement this - implement raw
subdomain, like it is implemented in GitHub. You specify path (namespace, repo, branch, filepath) and get raw file, e.g. raw.git.your-company.com/NAMESPACE/repo/branch/path-to-file.ext
Is it possible (and how?) To implement with Atlassian stash? I know that you can append every file with ?raw
parameter and stash will return it in raw format. But hosted files can contain relative references, that will not contain ?raw
parameter, so it will not work.