产品

获取产品列表 分享链接

作者:王怡栋 最后编辑:宋辰轩 于 2024-08-13 10:37:26 浏览量:11878
GET
/products

获取产品列表

请求URL

https://xxx.com/api.php/v1/products

请求头

名称 类型 必填 描述
Token String 认证凭证Token

请求响应

名称 类型 必填 描述
products array
  ∟  id int 产品ID
  ∟  program int 所属项目集
  ∟  name string 产品名称
  ∟  code string 产品代号
  ∟  line int 所属产品线
  ∟  PO 产品负责人
  ∟  QD 测试负责人
  ∟  RD 发布负责人
  ∟  type string 产品类型(normal 正常 | branch 多分支 | platform 多平台)
  ∟  desc string 产品描述
  ∟  acl string 访问控制(open 公开 | private 私有)
  ∟  whitelist array 白名单
  ∟  createdBy 创建人
  ∟  createdDate datetime 创建时间

响应示例

{
    "total": 1,
    "products": [
        {
            "id": 6,
            "program": 6,
            "name": "测试",
            "code": "",
            "bind": "1",
            "line": 0,
            "type": "normal",
            "status": "normal",
            "subStatus": "",
            "desc": "",
            "PO": {
                "id": 2,
                "account": "productManager",
                "avatar": "",
                "realname": "产品经理"
            },
            "QD": {
                "id": 1,
                "account": "admin",
                "avatar": "",
                "realname": "管理员"
            },
            "RD": {
                "id": 2,
                "account": "productManager",
                "avatar": "",
                "realname": "产品经理"
            },
            "acl": "private",
            "whitelist": [
                {
                    "id": 1,
                    "account": "admin",
                    "avatar": "",
                    "realname": "管理员"
                },
                {
                    "id": 2,
                    "account": "productManager",
                    "avatar": "",
                    "realname": "产品经理"
                }
            ],
            "reviewer": "",
            "createdBy": {
                "id": 1,
                "account": "admin",
                "avatar": "",
                "realname": "管理员"
            },
            "createdDate": "2021-12-01T05:17:04Z",
            "createdVersion": "15.8",
            "order": 30,
            "deleted": "0",
            "lineName": "",
            "programName": "企业管理",
            "stories": {
                "0": "",
                "1": "draft",
                "2": "active",
                "3": "closed",
                "4": "changed",
                "": 0,
                "draft": 0,
                "active": 0,
                "closed": 0,
                "changed": 0
            },
            "requirements": {
                "0": "",
                "1": "draft",
                "2": "active",
                "3": "closed",
                "4": "changed",
                "": 0,
                "draft": 0,
                "active": 0,
                "closed": 0,
                "changed": 0
            },
            "plans": 0,
            "releases": 0,
            "bugs": 0,
            "unResolved": 0,
            "closedBugs": 0,
            "fixedBugs": 0,
            "thisWeekBugs": 0,
            "assignToNull": 0,
            "progress": 0
        }
    ]
}
返回顶部
刘斌
高级客户经理
17685869372
526288068
统一服务热线 4006-8899-23
我要提问提问有任何问题,您都可以在这里提问。 问题反馈反馈点击这里,让我们聆听您的建议与反馈。