创建版本
请求头
名称 | 类型 | 必填 | 描述 |
---|
Token | String | 是 | 认证凭证Token |
|
请求体
名称 | 类型 | 必填 | 描述 |
---|
execution | int | 是 | 所属执行 |
product | int | 是 | 所属产品 |
branch | int | 否 | 所属分支 |
name | string | 是 | 版本名称 |
builder | string | 是 | 构建者 |
date | date | 否 | 打包日期 |
scmPath | string | 否 | 源代码地址 |
filePath | string | 否 | 下载地址 |
desc | string | 否 | 版本描述 |
请求示例
{
"name": "test",
"product": 4,
"date": "2021-01-01",
"execution": 42,
"builder": "admin"
}
请求响应
名称 | 类型 | 必填 | 描述 |
---|
id | int | 是 | 版本ID |
project | int | 是 | 所属项目 |
product | int | 是 | 所属产品 |
branch | int | 是 | 所属产品分支(主分支为0) |
execution | int | 是 | 所属执行 |
name | string | 是 | 版本名称 |
scmPath | string | 是 | 源代码地址 |
filePath | string | 是 | 下载地址 |
desc | string | 是 | 版本描述 |
builder | | 是 | 构建者 |
date | date | 是 | 打包日期 |
响应示例
{
"id": 3,
"project": 41,
"product": 4,
"branch": 0,
"execution": 42,
"name": "test",
"scmPath": "",
"filePath": "",
"date": "2021-01-01",
"stories": "",
"bugs": "",
"builder": "admin",
"desc": "",
"deleted": "0",
"executionName": "testt",
"productName": "多分支产品",
"productType": "branch",
"files": []
}