layout: post
title: coding迭代查询
categories: coding-post
tag: coding api
coding迭代查询
接口URL
https://<team-name>.coding.net/api/project/<project-id>/iterations?page=1&pageSize=20&keywords=&sortBy=CODE%3ADESC
请求方式
GET
请求header参数:
cookie:eid
请求Query参数
参数 | 示例值 | 必填 | 参数描述 |
---|---|---|---|
page | 1 | 否 | 页数 |
pageSize | 1000 | 否 | 每页容量 |
keywords | ··· | 否 | 关键词 |
sortBy | CODE%3ADESC(按id) | 否 | 排序方式 |
成功返回参数
参数 | 示例值 | 参数描述 |
---|---|---|
code | 0 | 状态码 |
成功示例数据
{
"code": 0,
"msg": null,
"data": {
"list": [
{
"code": 38,
"name": "test",
"goal": "test1",
"startAt": null,
"endAt": 1583251199000,
"creator": {
"id": 119745,
"status": 1,
"globalKey": "yskcpRReNA",
"avatar": "https://coding-net-production-static-ci.codehub.cn/WM-TEXT-AVATAR-hhRyeVzAOcdIIllXCioP.jpg",
"name": "xtx",
"email": "[email protected]"
},
"status": "WAIT_PROCESS",
"waitProcessCount": 0,
"processingCount": 0,
"completedCount": 0,
"remainingDays": 29,
"completedPercent": 0,
"todoStoryPointSum": 0,
"processStoryPointSum": 0,
"completeStoryPointSum": 0,
"createdAt": 1580722212000,
"updatedAt": 1580722212000,
"assignee": {
"id": 118745,
"status": 1,
"globalKey": "yskcpRReNA",
"avatar": "https://coding-net-production-static-ci.codehub.cn/WM-TEXT-AVATAR-hhRyeVzAOcdIIllXCioP.jpg",
"name": "xtx",
"email": "[email protected]"
},
"watchers": [
{
"id": 118745,
"status": 1,
"globalKey": null,
"avatar": "https://coding-net-production-static-ci.codehub.cn/WM-TEXT-AVATAR-hhRyeVzAOcdIIllXCioP.jpg",
"name": "xtx",
"email": "[email protected]"
}
],
}
]
"page": 1,
"pageSize": 20,
"totalPage": 1,
"totalRow": 1
}
}
失败返回参数
参数 | 示例值 | 参数描述 |
---|---|---|
code | 1046 | 状态码 |
msg | ··· | 错误原因描述 |