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/?ordering=-skipped
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 379934,
    "next": "https://api.represent.me/api/user_compare/?ordering=-skipped&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 60097,
            "usera": 6478,
            "userb": 1,
            "difference_percent": 18.1086519114688,
            "questions_counted": 497,
            "skipped": 614,
            "somewhat_agree": 211,
            "neutral": 42,
            "somewhat_disagree": 15,
            "strongly_disagree": 5,
            "created_at": "2016-09-12T13:57:15.006770Z",
            "modified_at": "2016-09-12T13:57:15.007101Z"
        },
        {
            "id": 60098,
            "usera": 1,
            "userb": 6478,
            "difference_percent": 18.1086519114688,
            "questions_counted": 497,
            "skipped": 614,
            "somewhat_agree": 211,
            "neutral": 42,
            "somewhat_disagree": 15,
            "strongly_disagree": 5,
            "created_at": "2016-09-12T13:57:15.011059Z",
            "modified_at": "2016-09-12T13:57:15.011368Z"
        },
        {
            "id": 51826,
            "usera": 1,
            "userb": 7,
            "difference_percent": 20.9335899903754,
            "questions_counted": 1039,
            "skipped": 591,
            "somewhat_agree": 442,
            "neutral": 101,
            "somewhat_disagree": 66,
            "strongly_disagree": 7,
            "created_at": "2016-09-02T23:25:03.228796Z",
            "modified_at": "2019-06-09T04:09:54.634370Z"
        },
        {
            "id": 51825,
            "usera": 7,
            "userb": 1,
            "difference_percent": 20.9335899903754,
            "questions_counted": 1039,
            "skipped": 591,
            "somewhat_agree": 442,
            "neutral": 101,
            "somewhat_disagree": 66,
            "strongly_disagree": 7,
            "created_at": "2016-09-02T23:25:03.224719Z",
            "modified_at": "2019-06-09T04:09:54.622991Z"
        },
        {
            "id": 79335,
            "usera": 1,
            "userb": 6696,
            "difference_percent": 19.2492012779553,
            "questions_counted": 313,
            "skipped": 582,
            "somewhat_agree": 110,
            "neutral": 49,
            "somewhat_disagree": 11,
            "strongly_disagree": 0,
            "created_at": "2016-11-11T11:38:09.831162Z",
            "modified_at": "2016-11-20T12:35:18.424144Z"
        },
        {
            "id": 79334,
            "usera": 6696,
            "userb": 1,
            "difference_percent": 19.2492012779553,
            "questions_counted": 313,
            "skipped": 582,
            "somewhat_agree": 110,
            "neutral": 49,
            "somewhat_disagree": 11,
            "strongly_disagree": 0,
            "created_at": "2016-11-11T11:38:09.800725Z",
            "modified_at": "2016-11-20T12:35:18.419763Z"
        },
        {
            "id": 51797,
            "usera": 308,
            "userb": 1,
            "difference_percent": 18.5581140350877,
            "questions_counted": 912,
            "skipped": 576,
            "somewhat_agree": 357,
            "neutral": 104,
            "somewhat_disagree": 32,
            "strongly_disagree": 4,
            "created_at": "2016-09-02T23:24:57.061404Z",
            "modified_at": "2017-06-02T13:58:07.593999Z"
        },
        {
            "id": 51798,
            "usera": 1,
            "userb": 308,
            "difference_percent": 18.5581140350877,
            "questions_counted": 912,
            "skipped": 576,
            "somewhat_agree": 357,
            "neutral": 104,
            "somewhat_disagree": 32,
            "strongly_disagree": 4,
            "created_at": "2016-09-02T23:24:57.065606Z",
            "modified_at": "2017-06-02T13:58:07.584153Z"
        },
        {
            "id": 52290,
            "usera": 1,
            "userb": 30,
            "difference_percent": 23.0886850152905,
            "questions_counted": 981,
            "skipped": 541,
            "somewhat_agree": 367,
            "neutral": 156,
            "somewhat_disagree": 65,
            "strongly_disagree": 8,
            "created_at": "2016-09-03T10:42:30.857352Z",
            "modified_at": "2017-06-02T13:58:07.477544Z"
        },
        {
            "id": 52289,
            "usera": 30,
            "userb": 1,
            "difference_percent": 23.0886850152905,
            "questions_counted": 981,
            "skipped": 541,
            "somewhat_agree": 367,
            "neutral": 156,
            "somewhat_disagree": 65,
            "strongly_disagree": 8,
            "created_at": "2016-09-03T10:42:30.853035Z",
            "modified_at": "2017-06-02T13:58:07.489101Z"
        }
    ]
}