跳至主要内容

GET /cards

描述

获取所有卡片的信息,并返回包含卡片对象数组的 JSON 对象。

此路由处理发送到 /cards 端点的 HTTP GET 请求。

请求体

无需请求体。

响应

响应返回一个包含所有卡片对象数组的 JSON 对象。

示例:

[
{
"id": 4,
"label": "Set the tasks priorities",
"description": "",
"column": 2,
"row": 1,
"start_date": "2018-01-01T00:00:00Z",
"end_date": null,
"progress": 75,
"attached": [],
"color": "#FFC975",
"users": []
},
{
"id": 5,
"label": "Custom icons",
"description": "",
"column": 2,
"row": 2,
"start_date": "2019-01-01T00:00:00Z",
"end_date": null,
"progress": 0,
"attached": [],
"color": "#65D3B3",
"users": []
},
{
"id": 6,
"label": "Integration with Gantt",
"description": "",
"column": 2,
"row": 2,
"start_date": "2020-01-01T00:00:00Z",
"end_date": null,
"progress": 75,
"attached": [],
"color": "#FFC975",
"users": []
},
]
注释

事件的开始和结束日期应遵循 ISO 格式 yyyy-MM-dd'T'HH:mm:ss.SSSXXX

有关返回对象的另一个示例,请参见 cards

HTTP 状态码表示请求的结果:成功(response.status == 200)或失败(response.status == 500)。


相关文档: