Web API Docs List comments

Navigate

Request

GET /api/projects/:project_id/contributions/:contribution_id/comments/

URL parameters

Parameter Type Description
project_id Integer Unique identifier for the project.
contribution_id Integer Unique identifier for the contribution.

Response

The response contains an array of all comments made to the contribution.

[
    {
        "id": 66,
        "text": "Good food",
        "creator": {
            "id": 422,
            "display_name": "Peter Schmeichel"
        },
        "respondsto": null,
        "created_at": "2014-06-05T11:31:02.613Z",
        "responses": [
            {
                "id": 67,
                "text": "Really? I think the smørrebrød is not authentic",
                "creator": {
                    "id": 423,
                    "display_name": "Brian Laudrup"
                },
                "respondsto": 66,
                "created_at": "2014-06-05T11:31:02.615Z",
                "responses": []
            }
        ]
    },
    {
        "id": 70,
        "text": "You crazy danish folks and your smørrebrød",
        "creator": {
            "id": 426,
            "display_name": "Mehmet Scholl"
        },
        "respondsto": null,
        "created_at": "2014-06-05T11:31:02.622Z",
        "responses": []
    }
]

Response codes

Code Reason
200 The comments has been returned successfully.
404 The project or contribution was not found. For security reasons we do not leak information about private projects, hence we don’t confirm existence private projects to unauthorised users.