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

{
    "count": 379950,
    "next": "https://api.represent.me/api/user_compare/?ordering=-modified_at&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 95710,
            "usera": 4977,
            "userb": 98,
            "difference_percent": 17.6136363636364,
            "questions_counted": 132,
            "skipped": 23,
            "somewhat_agree": 39,
            "neutral": 16,
            "somewhat_disagree": 6,
            "strongly_disagree": 1,
            "created_at": "2016-12-08T21:32:28.158286Z",
            "modified_at": "2020-01-14T05:57:14.047943Z"
        },
        {
            "id": 95711,
            "usera": 98,
            "userb": 4977,
            "difference_percent": 17.6136363636364,
            "questions_counted": 132,
            "skipped": 23,
            "somewhat_agree": 39,
            "neutral": 16,
            "somewhat_disagree": 6,
            "strongly_disagree": 1,
            "created_at": "2016-12-08T21:32:28.166646Z",
            "modified_at": "2020-01-14T05:57:14.037329Z"
        },
        {
            "id": 92220,
            "usera": 7,
            "userb": 4977,
            "difference_percent": 26.3005780346821,
            "questions_counted": 173,
            "skipped": 0,
            "somewhat_agree": 52,
            "neutral": 29,
            "somewhat_disagree": 16,
            "strongly_disagree": 6,
            "created_at": "2016-12-05T11:07:04.325121Z",
            "modified_at": "2020-01-14T05:55:57.438213Z"
        },
        {
            "id": 92221,
            "usera": 4977,
            "userb": 7,
            "difference_percent": 26.3005780346821,
            "questions_counted": 173,
            "skipped": 0,
            "somewhat_agree": 52,
            "neutral": 29,
            "somewhat_disagree": 16,
            "strongly_disagree": 6,
            "created_at": "2016-12-05T11:07:04.377610Z",
            "modified_at": "2020-01-14T05:55:57.427474Z"
        },
        {
            "id": 93070,
            "usera": 6736,
            "userb": 4977,
            "difference_percent": 25.635593220339,
            "questions_counted": 118,
            "skipped": 14,
            "somewhat_agree": 38,
            "neutral": 22,
            "somewhat_disagree": 9,
            "strongly_disagree": 3,
            "created_at": "2016-12-06T02:40:07.418433Z",
            "modified_at": "2020-01-14T05:55:57.282586Z"
        },
        {
            "id": 93071,
            "usera": 4977,
            "userb": 6736,
            "difference_percent": 25.635593220339,
            "questions_counted": 118,
            "skipped": 14,
            "somewhat_agree": 38,
            "neutral": 22,
            "somewhat_disagree": 9,
            "strongly_disagree": 3,
            "created_at": "2016-12-06T02:40:07.446452Z",
            "modified_at": "2020-01-14T05:55:57.274127Z"
        },
        {
            "id": 93047,
            "usera": 1,
            "userb": 4977,
            "difference_percent": 19.6153846153846,
            "questions_counted": 130,
            "skipped": 32,
            "somewhat_agree": 63,
            "neutral": 15,
            "somewhat_disagree": 3,
            "strongly_disagree": 0,
            "created_at": "2016-12-06T01:36:43.246293Z",
            "modified_at": "2020-01-14T05:55:57.235128Z"
        },
        {
            "id": 93046,
            "usera": 4977,
            "userb": 1,
            "difference_percent": 19.6153846153846,
            "questions_counted": 130,
            "skipped": 32,
            "somewhat_agree": 63,
            "neutral": 15,
            "somewhat_disagree": 3,
            "strongly_disagree": 0,
            "created_at": "2016-12-06T01:36:43.233747Z",
            "modified_at": "2020-01-14T05:55:57.227093Z"
        },
        {
            "id": 91771,
            "usera": 579,
            "userb": 4977,
            "difference_percent": 18.75,
            "questions_counted": 104,
            "skipped": 17,
            "somewhat_agree": 28,
            "neutral": 17,
            "somewhat_disagree": 4,
            "strongly_disagree": 1,
            "created_at": "2016-12-03T19:09:44.473483Z",
            "modified_at": "2020-01-14T05:55:57.171999Z"
        },
        {
            "id": 91770,
            "usera": 4977,
            "userb": 579,
            "difference_percent": 18.75,
            "questions_counted": 104,
            "skipped": 17,
            "somewhat_agree": 28,
            "neutral": 17,
            "somewhat_disagree": 4,
            "strongly_disagree": 1,
            "created_at": "2016-12-03T19:09:44.456224Z",
            "modified_at": "2020-01-14T05:55:57.160457Z"
        }
    ]
}