GET
/projects/:id/builds
获取项目版本列表
请求头
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
Token | String | 是 | 认证凭证Token |
请求响应
名称 | 类型 | 必填 | 描述 |
---|---|---|---|
total | int | 是 | 版本总数 |
builds | array | 是 | 版本列表 |
∟ id | int | 是 | 版本ID |
∟ project | int | 是 | 所属项目 |
∟ product | int | 是 | 所属产品 |
∟ branch | int | 是 | 所属分支 |
∟ execution | int | 是 | 所属执行 |
∟ name | string | 是 | 版本名称 |
∟ scmPath | string | 否 | 源代码地址 |
∟ filePath | string | 否 | 下载地址 |
∟ date | date | 是 | 打包日期 |
∟ builder | 是 | 构建者 | |
∟ desc | string | 是 | 版本描述 |
响应示例
{
"total": 1,
"builds": [
{
"id": 2,
"project": 12,
"product": 5,
"branch": 0,
"execution": 40,
"name": "1111111",
"scmPath": "",
"filePath": "",
"date": "2021-12-01",
"stories": [],
"bugs": [],
"builder": "admin",
"desc": "",
"deleted": false,
"executionName": "测试执行1111111",
"executionID": 40,
"productName": "测试",
"branchName": ""
}
]
}