Docs feedback: API docs don't describe how to get LFS content
Currently these pages don't mention LFS at all:
- https://docs.gitlab.com/ee/api/repository_files.html
- https://docs.gitlab.com/ee/api/repositories.html
I've tried both the Files and Blobs API, and both just give me back the LFS placeholder file, eg:
version https://git-lfs.github.com/spec/v1
oid sha256:e4a41e0d5b69fb630e92d7843dfa6bacae207a48c0987d416926c928cd7920e0
size 1573660
The web UI's "download" button does indeed give the full asset, as a URL that looks like:
http://///raw//<path/to/file>
However I don't believe I can use this for private repos with a token (the archive URLs, for example, don't work).
So the first question is, is it possible to get the underlying LFS content from the API? If so, I would propose that a note be added to the above documentation pages explaining to users how to download the resource using the supplied OID.
Edited by Mike Purvis