Top

Comments

List comments
GET /projects/:project_id/comments
Get comments for a project.
Post comment
POST /projects/:project_id/comments
Post comment to a project
Delete comment
DELETE /projects/:project_id/comments/:comment_id
Deleting a comment

List comments

GET  /projects/:project_id/comments

Get comments for a project.

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{
      "code": 0,
      "message": "success",
      "comments": [
        {
          "comment_id": "460000000044027",
          "project_id": "460000000044007",
          "description": "Billing based on task hours.",
          "commented_by_id": "460000000024003",
          "commented_by": "John David",
          "is_current_user": true,
          "date": "2013-09-18",
          "date_description": "19 days ago",
          "time": "6:52 PM"
        }
      ]
    }

Post comment

POST  /projects/:project_id/comments

Post comment to a project

Request attributes

description* string
[1000]
Project comment

Sample Request

{
      "description": "Billing based on task hours."
    }

Sample Response

Status: 201 Created
Content Type: application/json;charset=UTF-8
{
      "code": 0,
      "message": "Comments added.",
      "comment": {
        "project_id": "460000000044007",
        "comment_id": "460000000044027",
        "description": "Billing based on task hours.",
        "commented_by_id": "460000000024003",
        "commented_by": "John David",
        "date": "2013-09-18",
        "date_description": "19 days ago",
        "time": "6:52 PM"
      }
    }

Delete comment

DELETE  /projects/:project_id/comments/:comment_id

Deleting a comment

Sample Response

Status: 200 OK
Content Type: application/json;charset=UTF-8
{"code": 0,"message":"The comment has been deleted."}