Get comments

POST /comments

The attributes are given in PHP then encoded in JSON in the POST body.

Optional body parameters

Name Description Type
user Id of the user integer
created The date of the creation of the comment(s). Format: YYYY-MM-DD string
updated The date of the update of the comment(s). Format: YYYY-MM-DD string
Example

Request example

POST /comments
    {
        "filters": [
            { "type":"user", "value":"76" },
            { "type":"created", "value":"2018-02-01", "comparator":"<" }
        ],
        "sort": [
            { "field":"created", "order":"ASC"}
        ]
    }
    

Response example

    {
        "comments": [
            {
                "id": 1,
                "text": "Un très bon pilote.",
                "created": "2016-12-08T15:51:48+0100",
                "updated": "2016-12-08T16:12:23+0100",
                "author": {
                    "username": "will.adama@bg.com",
                    "email": "will.adama@bg.com",
                    "firstname": "Will",
                    "lastname": "Adama",
                    "id": 42
                }
            }
        ]
    }