获取仓库单个里程碑
获取仓库单个里程碑
Path Parameters
- owner required
代码仓库的所有者,一般称之为"用户名(username)"。
- repo required
代码仓库名称.
- number required
里程碑id
Header Parameters
- Authorization required
私人token | app token(ats)(需以Bearer加空格开头)
Responses
- 200
- 400
- 401
- 403
- 404
操作成功
- application/json
- Schema
- Example (from schema)
Schema
- id string
里程碑id
- number String
里程碑编号
- state string
状态(open:打开;closed:关闭)
- title string
里程碑标题
- description string
里程碑描述
- repository_id string
里程碑所属仓库id
- open_issues int
里程碑关联的打开issue数量
- closed_issues int
里程碑关联的关闭issue数量
- url string
里程碑详情的openapi url
- html_url string
里程碑详情web 地址
- due_on string
里程碑截止日期
- created_at string
里程碑创建时间
- updated_at string
里程碑更新时间
{
"id": "64a2791c36ca86246aed3612",
"number": "67628decf0646125c6170a71",
"state": "closed",
"title": "里程碑标题",
"description": "里程碑描述",
"repository_id": 34366433,
"open_issues": 2,
"closed_issues": 1,
"url": "https://api.atomgit.com/repos/zxjava/test2/milestones/67628decf0646125c6170a71",
"html_url": "https://atomgit.com/zxjava/test2/milestones/67628decf0646125c6170a71",
"due_on": "2023-07-04T17:03:05+08:00",
"created_at": "2023-07-04T17:03:05+08:00",
"updated_at": "2023-07-04T17:03:05+08:00"
}
参数有误
token不合法、请检查token是否正确
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
{
"error": "invalid_token",
"error_description": "Invalid token, please provide correct token"
}
- Schema
- Example (from schema)
Schema
- error string
错误名称
- error_description string
错误描述
<root>
<error>invalid_token</error>
<error_description>Invalid token, please provide correct token</error_description>
</root>
权限异常
- application/json
- Schema
- Example (from schema)
Schema
- error_code string
错误名称
- error_message string
错误描述
{
"error_code": "string",
"error_message": "string"
}
资源不存在
Loading...