仪表盘 API

项目活动
GET /portal/[PORTALID]/projects/[PROJECTID]/activities/
项目状态
GET /portal/[PORTALID]/projects/[PROJECTID]/statuses/
添加项目状态
POST /portal/[PORTALID]/projects/[PROJECTID]/statuses/

 项目活动

GET /portal/[PORTALID]/projects/[PROJECTID]/activities/

列示项目的所有最近活动。

请求参数

索引整数型项目活动的索引号。
范围整数型项目活动的范围。

样本响应

Status: 200 Success

Content Type: application/json;charset=utf-8
{
    "activities": [{
        "id": 170876000001818011,
        "state": "new",
        "activity_for": "Status ",
        "name": "Release Documents for Build 4.0",
        "activity_by": "Patricia Boyle",
        "time_long": 1399484977669,
        "display_time": "May 7",
        "time": "05-07-2014 03:19 PM"
    }, {
        "id": 170876000001818005,
        "state": "new",
        "activity_for": "Status ",
        "name": "Release for 4.0",
        "activity_by": "Patricia Boyle",
        "time_long": 1399484914215,
        "display_time": "May 7",
        "time": "05-07-2014 03:18 PM"
    }, {
        "id": 170876000001752087,
        "state": "new",
        "activity_for": "Task ",
        "name": "Rework shortlisted templates",
        "activity_by": "Jasmine Frank",
        "time_long": 1397236801643,
        "display_time": "April 11",
        "time": "04-11-2014 02:50 PM"
    }, {
        "id": 170876000001752043,
        "state": "owner",
        "activity_for": "Task owner",
        "name": "Prepare first draft",
        "activity_by": "Charles Stone",
        "time_long": 1397230117551,
        "display_time": "April 11",
        "time": "04-11-2014 12:58 PM"
    }, {
        "id": 170876000001752041,
        "state": "new",
        "activity_for": "Task ",
        "name": "Prepare first draft",
        "activity_by": "Charles Stone",
        "time_long": 1397230037883,
        "display_time": "April 11",
        "time": "04-11-2014 12:57 PM"
    }, {
        "id": 170876000001752035,
        "state": "add",
        "activity_for": "Document comment",
        "name": "Looks good!",
        "activity_by": "Charles Stone",
        "time_long": 1397229994337,
        "display_time": "April 11",
        "time": "04-11-2014 12:56 PM"
    }]
}

 项目状态

GET /portal/[PORTALID]/projects/[PROJECTID]/statuses/

获取给定项目的状态。

请求参数

索引整数型项目状态的索引号。
范围整数型项目状态的范围。

样本响应

Status: 200 Success

Content Type: application/json;charset=utf-8
  {
    "statuses": [{
        "id": 170876000001818007,
        "content": "Release Documents for Build 4.0",
        "posted_by": "2060758",
        "posted_person": "Patricia Boyle",
        "posted_time": "05-07-2014 03:19 PM",
        "posted_time_long": 1399484977656
    }, {
        "id": 170876000001818001,
        "content": "Release for 4.0",
        "posted_by": "2060758",
        "posted_person": "Patricia Boyle",
        "posted_time": "05-07-2014 03:18 PM",
        "posted_time_long": 1399484914182
    }, {
        "id": 170876000000765051,
        "content": "Team post your design ideas along with samples to view",
        "posted_by": "2060758",
        "posted_person": "Patricia Boyle",
        "posted_time": "10-22-2012 06:26 PM",
        "posted_time_long": 1350939385231
    }]
}

 添加项目状态

POST /portal/[PORTALID]/projects/[PROJECTID]/statuses/

对给定项目添加新状态。

请求参数

内容*字符串项目的状态。

样本响应

Status: 201 Created

Content Type: application/json;charset=utf-8
{
    "statuses": [{
        "id": 170876000001849015,
        "content": "Build Awaiting Alpha Test",
        "posted_by": "2060758",
        "posted_person": "Patricia Boyle",
        "posted_time": "05-26-2014 11:28 AM",
        "posted_time_long": 1401112726593
    }]
}