Git

下载 Commit 附件。Download commit attachments.

302 重定向到有时效的下载地址。 302 redirect to a time-limited download URL. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

get/{repo}/-/commit-assets/download/{commit_id}/{filename}

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/{repo}/-/commit-assets/download/{commit_id}/{filename}
  • Auth: API key in header Authorization

Path parameters

repostring required

不带.git后缀的仓库名称。格式:组织名称/仓库名称。Repository name without .git suffix. Format: org/repo.

commit_idstring required

提交的哈希值。Commit hash.

filenamestring required

文件名称。示例:test.png

Query parameters

shareboolean

是否可下载;302跳转12h有效最多10次。Downloadable;302 valid 12h,max 10 downloads.

Changes

No recorded changes to this operation across all 1 revision of this API.