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": 379922,
    "next": "https://api.represent.me/api/user_compare/?ordering=-modified_at&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 400749,
            "usera": 20796,
            "userb": 8232,
            "difference_percent": 29.8780487804878,
            "questions_counted": 41,
            "skipped": 7,
            "somewhat_agree": 12,
            "neutral": 6,
            "somewhat_disagree": 7,
            "strongly_disagree": 1,
            "created_at": "2019-08-21T04:54:03.703070Z",
            "modified_at": "2019-08-21T05:09:18.587544Z"
        },
        {
            "id": 400747,
            "usera": 20796,
            "userb": 6,
            "difference_percent": 27.5,
            "questions_counted": 30,
            "skipped": 3,
            "somewhat_agree": 9,
            "neutral": 3,
            "somewhat_disagree": 6,
            "strongly_disagree": 0,
            "created_at": "2019-07-01T21:21:42.863822Z",
            "modified_at": "2019-08-21T05:09:18.575964Z"
        },
        {
            "id": 400748,
            "usera": 8232,
            "userb": 20796,
            "difference_percent": 29.8780487804878,
            "questions_counted": 41,
            "skipped": 7,
            "somewhat_agree": 12,
            "neutral": 6,
            "somewhat_disagree": 7,
            "strongly_disagree": 1,
            "created_at": "2019-08-21T04:54:03.663967Z",
            "modified_at": "2019-08-21T05:09:18.574924Z"
        },
        {
            "id": 400746,
            "usera": 6,
            "userb": 20796,
            "difference_percent": 27.5,
            "questions_counted": 30,
            "skipped": 3,
            "somewhat_agree": 9,
            "neutral": 3,
            "somewhat_disagree": 6,
            "strongly_disagree": 0,
            "created_at": "2019-07-01T21:21:42.791445Z",
            "modified_at": "2019-08-21T05:09:18.562626Z"
        },
        {
            "id": 12259,
            "usera": 743,
            "userb": 7,
            "difference_percent": 17.5675675675676,
            "questions_counted": 74,
            "skipped": 2,
            "somewhat_agree": 26,
            "neutral": 3,
            "somewhat_disagree": 4,
            "strongly_disagree": 2,
            "created_at": "2016-07-02T11:13:03.470172Z",
            "modified_at": "2019-08-12T13:38:07.412355Z"
        },
        {
            "id": 12260,
            "usera": 7,
            "userb": 743,
            "difference_percent": 17.5675675675676,
            "questions_counted": 74,
            "skipped": 2,
            "somewhat_agree": 26,
            "neutral": 3,
            "somewhat_disagree": 4,
            "strongly_disagree": 2,
            "created_at": "2016-07-02T11:13:03.478124Z",
            "modified_at": "2019-08-12T13:38:07.388278Z"
        },
        {
            "id": 46714,
            "usera": 6350,
            "userb": 7,
            "difference_percent": 17.2727272727273,
            "questions_counted": 55,
            "skipped": 12,
            "somewhat_agree": 24,
            "neutral": 4,
            "somewhat_disagree": 2,
            "strongly_disagree": 0,
            "created_at": "2016-08-08T10:15:31.795056Z",
            "modified_at": "2019-08-12T13:38:07.248248Z"
        },
        {
            "id": 46713,
            "usera": 7,
            "userb": 6350,
            "difference_percent": 17.2727272727273,
            "questions_counted": 55,
            "skipped": 12,
            "somewhat_agree": 24,
            "neutral": 4,
            "somewhat_disagree": 2,
            "strongly_disagree": 0,
            "created_at": "2016-08-08T10:15:31.790614Z",
            "modified_at": "2019-08-12T13:38:07.216391Z"
        },
        {
            "id": 121651,
            "usera": 13297,
            "userb": 7,
            "difference_percent": 16.9398907103825,
            "questions_counted": 183,
            "skipped": 1,
            "somewhat_agree": 58,
            "neutral": 16,
            "somewhat_disagree": 6,
            "strongly_disagree": 4,
            "created_at": "2017-02-02T09:41:23.947107Z",
            "modified_at": "2019-08-12T13:38:07.139019Z"
        },
        {
            "id": 121652,
            "usera": 7,
            "userb": 13297,
            "difference_percent": 16.9398907103825,
            "questions_counted": 183,
            "skipped": 1,
            "somewhat_agree": 58,
            "neutral": 16,
            "somewhat_disagree": 6,
            "strongly_disagree": 4,
            "created_at": "2017-02-02T09:41:23.961673Z",
            "modified_at": "2019-08-12T13:38:07.122410Z"
        }
    ]
}