a view to sort users by similarity

Data is updated when a compare is performed by another route (compare_users or detailed_compare_users)

A duplicate of data is stored with the names swapped, to make querying easy

Future additions should include creating the data if a query for two exact users is requested

GET /api/user_compare/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 379918,
    "next": "https://api.represent.me/api/user_compare/?page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 60778,
            "usera": 6647,
            "userb": 6596,
            "difference_percent": 18.6813186813187,
            "questions_counted": 91,
            "skipped": 2,
            "somewhat_agree": 29,
            "neutral": 13,
            "somewhat_disagree": 3,
            "strongly_disagree": 1,
            "created_at": "2016-09-14T23:06:04.945124Z",
            "modified_at": "2016-09-16T10:20:46.293061Z"
        },
        {
            "id": 60777,
            "usera": 6596,
            "userb": 6647,
            "difference_percent": 18.6813186813187,
            "questions_counted": 91,
            "skipped": 2,
            "somewhat_agree": 29,
            "neutral": 13,
            "somewhat_disagree": 3,
            "strongly_disagree": 1,
            "created_at": "2016-09-14T23:06:04.940790Z",
            "modified_at": "2016-09-16T10:20:46.296868Z"
        },
        {
            "id": 55035,
            "usera": 1717,
            "userb": 1,
            "difference_percent": 16.6666666666667,
            "questions_counted": 33,
            "skipped": 6,
            "somewhat_agree": 14,
            "neutral": 4,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-09-07T18:38:38.155392Z",
            "modified_at": "2016-09-07T18:38:38.155709Z"
        },
        {
            "id": 55036,
            "usera": 1,
            "userb": 1717,
            "difference_percent": 16.6666666666667,
            "questions_counted": 33,
            "skipped": 6,
            "somewhat_agree": 14,
            "neutral": 4,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-09-07T18:38:38.159348Z",
            "modified_at": "2016-09-07T18:38:38.159628Z"
        },
        {
            "id": 55913,
            "usera": 3316,
            "userb": 1,
            "difference_percent": 55.5555555555556,
            "questions_counted": 9,
            "skipped": 1,
            "somewhat_agree": 2,
            "neutral": 0,
            "somewhat_disagree": 6,
            "strongly_disagree": 0,
            "created_at": "2016-09-07T18:40:41.432874Z",
            "modified_at": "2016-09-07T18:40:41.433401Z"
        },
        {
            "id": 55914,
            "usera": 1,
            "userb": 3316,
            "difference_percent": 55.5555555555556,
            "questions_counted": 9,
            "skipped": 1,
            "somewhat_agree": 2,
            "neutral": 0,
            "somewhat_disagree": 6,
            "strongly_disagree": 0,
            "created_at": "2016-09-07T18:40:41.438229Z",
            "modified_at": "2016-09-07T18:40:41.438686Z"
        },
        {
            "id": 56677,
            "usera": 4229,
            "userb": 1,
            "difference_percent": 0.0,
            "questions_counted": 0,
            "skipped": 0,
            "somewhat_agree": 0,
            "neutral": 0,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-09-07T18:41:57.170618Z",
            "modified_at": "2016-09-07T18:41:57.170935Z"
        },
        {
            "id": 53077,
            "usera": 530,
            "userb": 1,
            "difference_percent": 10.4166666666667,
            "questions_counted": 12,
            "skipped": 8,
            "somewhat_agree": 3,
            "neutral": 1,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-09-03T10:44:37.651470Z",
            "modified_at": "2016-09-03T10:44:37.651782Z"
        },
        {
            "id": 53078,
            "usera": 1,
            "userb": 530,
            "difference_percent": 10.4166666666667,
            "questions_counted": 12,
            "skipped": 8,
            "somewhat_agree": 3,
            "neutral": 1,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-09-03T10:44:37.655760Z",
            "modified_at": "2016-09-03T10:44:37.656041Z"
        },
        {
            "id": 66221,
            "usera": 882,
            "userb": 6765,
            "difference_percent": 0.0,
            "questions_counted": 0,
            "skipped": 0,
            "somewhat_agree": 0,
            "neutral": 0,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-10-13T07:27:45.964959Z",
            "modified_at": "2016-10-13T07:28:54.989549Z"
        }
    ]
}