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

{
    "count": 379934,
    "next": "https://api.represent.me/api/user_compare/?ordering=-questions_counted&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 10058,
            "usera": 7,
            "userb": 30,
            "difference_percent": 26.860393603936,
            "questions_counted": 1626,
            "skipped": 135,
            "somewhat_agree": 491,
            "neutral": 167,
            "somewhat_disagree": 222,
            "strongly_disagree": 64,
            "created_at": "2016-06-30T17:12:23.144753Z",
            "modified_at": "2019-10-27T08:43:42.778667Z"
        },
        {
            "id": 10057,
            "usera": 30,
            "userb": 7,
            "difference_percent": 26.860393603936,
            "questions_counted": 1626,
            "skipped": 135,
            "somewhat_agree": 491,
            "neutral": 167,
            "somewhat_disagree": 222,
            "strongly_disagree": 64,
            "created_at": "2016-06-30T17:12:23.140151Z",
            "modified_at": "2019-10-27T08:43:42.755273Z"
        },
        {
            "id": 12349,
            "usera": 308,
            "userb": 7,
            "difference_percent": 24.4002525252525,
            "questions_counted": 1584,
            "skipped": 365,
            "somewhat_agree": 592,
            "neutral": 198,
            "somewhat_disagree": 146,
            "strongly_disagree": 30,
            "created_at": "2016-07-02T12:45:49.207713Z",
            "modified_at": "2017-11-17T14:38:08.043611Z"
        },
        {
            "id": 12350,
            "usera": 7,
            "userb": 308,
            "difference_percent": 24.4002525252525,
            "questions_counted": 1584,
            "skipped": 365,
            "somewhat_agree": 592,
            "neutral": 198,
            "somewhat_disagree": 146,
            "strongly_disagree": 30,
            "created_at": "2016-07-02T12:45:49.212301Z",
            "modified_at": "2017-11-17T14:38:08.052184Z"
        },
        {
            "id": 29860,
            "usera": 308,
            "userb": 30,
            "difference_percent": 24.3562978427279,
            "questions_counted": 1437,
            "skipped": 273,
            "somewhat_agree": 484,
            "neutral": 214,
            "somewhat_disagree": 132,
            "strongly_disagree": 23,
            "created_at": "2016-07-12T21:07:07.518466Z",
            "modified_at": "2017-06-02T13:58:07.874513Z"
        },
        {
            "id": 29859,
            "usera": 30,
            "userb": 308,
            "difference_percent": 24.3562978427279,
            "questions_counted": 1437,
            "skipped": 273,
            "somewhat_agree": 484,
            "neutral": 214,
            "somewhat_disagree": 132,
            "strongly_disagree": 23,
            "created_at": "2016-07-12T21:07:07.514319Z",
            "modified_at": "2017-06-02T13:58:07.864623Z"
        },
        {
            "id": 69087,
            "usera": 6045,
            "userb": 7,
            "difference_percent": 24.2494226327945,
            "questions_counted": 1299,
            "skipped": 135,
            "somewhat_agree": 402,
            "neutral": 128,
            "somewhat_disagree": 138,
            "strongly_disagree": 47,
            "created_at": "2016-10-25T13:14:16.465428Z",
            "modified_at": "2017-04-06T17:54:34.269821Z"
        },
        {
            "id": 69088,
            "usera": 7,
            "userb": 6045,
            "difference_percent": 24.2494226327945,
            "questions_counted": 1299,
            "skipped": 135,
            "somewhat_agree": 402,
            "neutral": 128,
            "somewhat_disagree": 138,
            "strongly_disagree": 47,
            "created_at": "2016-10-25T13:14:16.469559Z",
            "modified_at": "2017-04-06T17:54:34.392459Z"
        },
        {
            "id": 12461,
            "usera": 69,
            "userb": 7,
            "difference_percent": 23.9936858721389,
            "questions_counted": 1267,
            "skipped": 202,
            "somewhat_agree": 397,
            "neutral": 145,
            "somewhat_disagree": 119,
            "strongly_disagree": 43,
            "created_at": "2016-07-02T15:34:57.754673Z",
            "modified_at": "2018-08-15T21:13:56.441830Z"
        },
        {
            "id": 12462,
            "usera": 7,
            "userb": 69,
            "difference_percent": 23.9936858721389,
            "questions_counted": 1267,
            "skipped": 202,
            "somewhat_agree": 397,
            "neutral": 145,
            "somewhat_disagree": 119,
            "strongly_disagree": 43,
            "created_at": "2016-07-02T15:34:57.759523Z",
            "modified_at": "2018-08-15T21:13:56.448359Z"
        }
    ]
}