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

{
    "count": 379920,
    "next": "https://api.represent.me/api/user_compare/?ordering=usera&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 57926,
            "usera": 1,
            "userb": 5934,
            "difference_percent": 19.0,
            "questions_counted": 225,
            "skipped": 61,
            "somewhat_agree": 92,
            "neutral": 29,
            "somewhat_disagree": 7,
            "strongly_disagree": 0,
            "created_at": "2016-09-07T18:44:03.549954Z",
            "modified_at": "2019-01-21T10:57:43.961075Z"
        },
        {
            "id": 51812,
            "usera": 1,
            "userb": 597,
            "difference_percent": 16.6083916083916,
            "questions_counted": 143,
            "skipped": 90,
            "somewhat_agree": 76,
            "neutral": 8,
            "somewhat_disagree": 1,
            "strongly_disagree": 0,
            "created_at": "2016-09-02T23:25:02.641122Z",
            "modified_at": "2018-12-21T20:18:35.469283Z"
        },
        {
            "id": 400657,
            "usera": 1,
            "userb": 5066,
            "difference_percent": 10.4166666666667,
            "questions_counted": 24,
            "skipped": 1,
            "somewhat_agree": 8,
            "neutral": 1,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2018-04-10T23:08:24.281676Z",
            "modified_at": "2018-10-31T17:36:11.025171Z"
        },
        {
            "id": 60138,
            "usera": 1,
            "userb": 640,
            "difference_percent": 21.9866071428571,
            "questions_counted": 224,
            "skipped": 204,
            "somewhat_agree": 91,
            "neutral": 14,
            "somewhat_disagree": 22,
            "strongly_disagree": 3,
            "created_at": "2016-09-12T13:57:22.235848Z",
            "modified_at": "2018-10-31T17:36:11.538541Z"
        },
        {
            "id": 400659,
            "usera": 1,
            "userb": 4994,
            "difference_percent": 24.6575342465753,
            "questions_counted": 73,
            "skipped": 20,
            "somewhat_agree": 30,
            "neutral": 12,
            "somewhat_disagree": 6,
            "strongly_disagree": 0,
            "created_at": "2018-04-10T23:08:24.366875Z",
            "modified_at": "2018-10-31T17:36:10.724806Z"
        },
        {
            "id": 54869,
            "usera": 1,
            "userb": 4951,
            "difference_percent": 19.7916666666667,
            "questions_counted": 24,
            "skipped": 3,
            "somewhat_agree": 9,
            "neutral": 2,
            "somewhat_disagree": 2,
            "strongly_disagree": 0,
            "created_at": "2016-09-07T16:22:57.832031Z",
            "modified_at": "2018-10-31T17:36:10.227096Z"
        },
        {
            "id": 51832,
            "usera": 1,
            "userb": 564,
            "difference_percent": 14.0243902439024,
            "questions_counted": 41,
            "skipped": 22,
            "somewhat_agree": 16,
            "neutral": 2,
            "somewhat_disagree": 1,
            "strongly_disagree": 0,
            "created_at": "2016-09-03T00:03:37.350774Z",
            "modified_at": "2018-10-31T17:36:10.611769Z"
        },
        {
            "id": 400647,
            "usera": 1,
            "userb": 20587,
            "difference_percent": 19.8275862068966,
            "questions_counted": 58,
            "skipped": 7,
            "somewhat_agree": 24,
            "neutral": 8,
            "somewhat_disagree": 2,
            "strongly_disagree": 0,
            "created_at": "2018-04-09T07:37:20.123802Z",
            "modified_at": "2018-04-27T22:10:30.458778Z"
        },
        {
            "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": "2019-04-25T04:57:48.220573Z"
        },
        {
            "id": 400550,
            "usera": 1,
            "userb": 20226,
            "difference_percent": 49.1071428571429,
            "questions_counted": 28,
            "skipped": 12,
            "somewhat_agree": 9,
            "neutral": 2,
            "somewhat_disagree": 10,
            "strongly_disagree": 3,
            "created_at": "2018-02-21T20:40:50.194946Z",
            "modified_at": "2018-02-21T20:40:50.475437Z"
        }
    ]
}