Assets
Pulls
Issues

获取 Issue/PR 文件。Get issue/PR files.

获取与 Issue/PR 无关联的文件二进制内容。有关联的文件使用 GetIssueFiles 和 GetPrFiles。 后续版本可能移出 Assets 分类。 This endpoint only retrieves files not associated with any issue or pull request. For associated files, use GetIssueFiles and GetPrFiles. This endpoint may be moved out of the Assets category in future versions. 访问令牌调用此接口需包含以下权限。Required permissions for access token. repo-code:r

get/{repo}/-/files/{filePath}

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}/-/files/{filePath}
  • Auth: API key in header Authorization

Path parameters

repostring required

仓库路径。Repository path.

filePathstring required

文件路径,从完整 URL 中提取的路径部分。File path extracted from the full URL, e.g. path/to/file.txt.

Response

OK

Changes

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