-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
API raw route should support tags/branches #12066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Why can't you use the |
Because is not mentioned in the swagger help page. |
Actually I'm wrong the ref Param isn't used on this path. Apologies. However looking at the code, I think the file path needs to be the same as on the actual site. That is: /api/v1/repos/{owner}/{name}/raw/branch/{branch name}/{file path} And so on for tags and commits |
Looks like it is duplicate #14597 |
Description
/repos/{owner}/{repo}/raw/{filepath} only supports the master branch. It should also support specifying branch and tag.
As far as I can tell, I have to use the /repos/{owner}/{repo}/contents/{filepath} route and then decode the base64 contents.
For my specific use case, I would also like to see the raw download url accept Authorization token headers.
The text was updated successfully, but these errors were encountered: