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

{
    "count": 379920,
    "next": "https://api.represent.me/api/user_compare/?ordering=difference_percent&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 58656,
            "usera": 6596,
            "userb": 793,
            "difference_percent": 0.0,
            "questions_counted": 0,
            "skipped": 0,
            "somewhat_agree": 0,
            "neutral": 0,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-09-08T20:49:09.205093Z",
            "modified_at": "2016-09-09T13:08:03.156466Z"
        },
        {
            "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"
        },
        {
            "id": 58655,
            "usera": 793,
            "userb": 6596,
            "difference_percent": 0.0,
            "questions_counted": 0,
            "skipped": 0,
            "somewhat_agree": 0,
            "neutral": 0,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-09-08T20:49:09.200554Z",
            "modified_at": "2016-09-09T13:08:03.151597Z"
        },
        {
            "id": 66222,
            "usera": 6765,
            "userb": 882,
            "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.969201Z",
            "modified_at": "2016-10-13T07:28:54.993201Z"
        },
        {
            "id": 56678,
            "usera": 1,
            "userb": 4229,
            "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.175314Z",
            "modified_at": "2016-09-07T18:41:57.175586Z"
        },
        {
            "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": 70115,
            "usera": 4680,
            "userb": 6894,
            "difference_percent": 0.0,
            "questions_counted": 0,
            "skipped": 0,
            "somewhat_agree": 0,
            "neutral": 0,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-10-26T13:02:09.160103Z",
            "modified_at": "2016-11-04T17:51:10.757889Z"
        },
        {
            "id": 90476,
            "usera": 5870,
            "userb": 7377,
            "difference_percent": 0.0,
            "questions_counted": 0,
            "skipped": 0,
            "somewhat_agree": 0,
            "neutral": 0,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-12-02T16:26:12.027102Z",
            "modified_at": "2016-12-02T16:26:12.027364Z"
        },
        {
            "id": 46988,
            "usera": 93,
            "userb": 882,
            "difference_percent": 0.0,
            "questions_counted": 0,
            "skipped": 2,
            "somewhat_agree": 0,
            "neutral": 0,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-08-08T16:01:19.724141Z",
            "modified_at": "2016-09-10T07:52:27.268402Z"
        },
        {
            "id": 46987,
            "usera": 882,
            "userb": 93,
            "difference_percent": 0.0,
            "questions_counted": 0,
            "skipped": 2,
            "somewhat_agree": 0,
            "neutral": 0,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-08-08T16:01:19.720062Z",
            "modified_at": "2016-09-10T07:52:27.264396Z"
        }
    ]
}