API endpoint that allows Comments to be viewed or edited.

comments for a question:

http://127.0.0.1:8000/api/comments/?question=1065

comments for a question sorted by heat:

http://127.0.0.1:8000/api/comments/?question=1065&ordering=-direct_heat

Children of a comment:

http://127.0.0.1:8000/api/comments/?parent=35
GET /api/comments/26/
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 26,
    "url": "https://api.represent.me/api/comments/26/",
    "text": "Amongst other reasons, I consider the primary aim of the Justice system to be rehabilitation, which the death penalty does not allow for.",
    "my_vote": [],
    "vote": [
        {
            "id": 11416,
            "value": 1.0,
            "user": 176,
            "private": false,
            "active": true,
            "object": 33,
            "created_at": "2015-02-20T15:12:27.674000Z",
            "modified_at": "2016-04-14T19:45:52.231285Z"
        }
    ],
    "question": 33,
    "question_title": "My country should have the death penalty",
    "user": {
        "id": 176,
        "username": "alex_rees",
        "first_name": "Alex",
        "last_name": "Rees",
        "url": "https://api.represent.me/api/users/176/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/1434630757206.jpg",
        "is_admin_verified": false,
        "verification_score": 35,
        "region_info": {
            "id": 45690,
            "ID": "GBR_REGION_ENG",
            "name": "England",
            "m_type": "region",
            "location": {
                "type": "Point",
                "coordinates": [
                    -1.4587100703941027,
                    52.59501517841384
                ]
            },
            "members_count": 7889,
            "question_count": 13,
            "created_at": "2017-03-17T16:31:15.805339Z",
            "parent": 59,
            "modified_at": "2019-11-18T18:21:03.530614Z"
        },
        "country_info": {
            "id": 59,
            "ID": "GBR",
            "name": "United Kingdom",
            "m_type": "country",
            "location": {
                "type": "Point",
                "coordinates": [
                    -2.8869514831036756,
                    54.14704818919766
                ]
            },
            "members_count": 9107,
            "question_count": 923,
            "created_at": "2016-03-20T04:26:45.483907Z",
            "parent": null,
            "modified_at": "2019-11-18T18:21:03.551797Z"
        },
        "created_at": "2015-02-20T14:05:41.519000Z",
        "modified_at": "2019-04-15T15:53:32.044581Z",
        "last_answer_time": "2015-03-04T13:28:25.179000Z"
    },
    "question_url": "https://api.represent.me/api/questions/33/",
    "parent": null,
    "parent_url": null,
    "subtype": "reason",
    "question_info": {
        "id": 33,
        "question": "My country should have the death penalty"
    },
    "direct_vote_count": 0,
    "direct_value": 0.0,
    "direct_sum": 0.0,
    "direct_heat": 0.0,
    "direct_consensus": 0.5,
    "direct_skipped": 0,
    "direct_minimum": 0,
    "direct_low": 0,
    "direct_medium": 0,
    "direct_high": 0,
    "direct_maximum": 0,
    "created_at": "2015-02-20T23:47:44.946000Z",
    "modified_at": "2016-04-15T02:04:41.091123Z"
}