Git
获取 LFS 文件下载链接。Get LFS file download URL.
获取 Git LFS 大文件的预签名下载链接。通过 OID 定位文件,返回 302 重定向到实际的下载地址。使用 name 参数指定下载时的文件名,未提供时默认使用 OID。 Get a pre-signed download URL for a Git LFS large file. Locates the file by OID and returns a 302 redirect to the actual download URL. Supports specifying a filename via the name parameter; defaults to OID if not provided. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r
get/{slug}/-/lfs/{oid}
Request
- Base URL: https://api.cnb.cool (the document declares no server; this is the origin it was published from)
- URL: https://api.cnb.cool/{slug}/-/lfs/{oid}
- Auth: API key in header Authorization
Path parameters
slugstring required
仓库标识符。格式:组织名称/仓库名称. Repository identifier. Format: org_name/repo_name
oidstring required
LFS文件的唯一标识符。
Query parameters
namestring
LFS文件名称。未提供时默认使用oid作为文件名。
Changes
No recorded changes to this operation across all 1 revision of this API.