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": 379934,
    "next": "https://api.represent.me/api/user_compare/?ordering=modified_at&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 5433,
            "usera": 6,
            "userb": 5738,
            "difference_percent": 34.6153846153846,
            "questions_counted": 13,
            "skipped": 2,
            "somewhat_agree": 4,
            "neutral": 2,
            "somewhat_disagree": 2,
            "strongly_disagree": 1,
            "created_at": "2016-06-30T17:02:13.897955Z",
            "modified_at": "2016-06-30T17:03:59.490894Z"
        },
        {
            "id": 5434,
            "usera": 5738,
            "userb": 6,
            "difference_percent": 34.6153846153846,
            "questions_counted": 13,
            "skipped": 2,
            "somewhat_agree": 4,
            "neutral": 2,
            "somewhat_disagree": 2,
            "strongly_disagree": 1,
            "created_at": "2016-06-30T17:02:13.902623Z",
            "modified_at": "2016-06-30T17:03:59.494594Z"
        },
        {
            "id": 11369,
            "usera": 6,
            "userb": 5962,
            "difference_percent": 28.5714285714286,
            "questions_counted": 7,
            "skipped": 0,
            "somewhat_agree": 3,
            "neutral": 1,
            "somewhat_disagree": 1,
            "strongly_disagree": 0,
            "created_at": "2016-06-30T17:29:24.415839Z",
            "modified_at": "2016-06-30T17:29:31.765474Z"
        },
        {
            "id": 11370,
            "usera": 5962,
            "userb": 6,
            "difference_percent": 28.5714285714286,
            "questions_counted": 7,
            "skipped": 0,
            "somewhat_agree": 3,
            "neutral": 1,
            "somewhat_disagree": 1,
            "strongly_disagree": 0,
            "created_at": "2016-06-30T17:29:24.420138Z",
            "modified_at": "2016-06-30T17:29:31.769528Z"
        },
        {
            "id": 11503,
            "usera": 5931,
            "userb": 5930,
            "difference_percent": 33.3333333333333,
            "questions_counted": 3,
            "skipped": 0,
            "somewhat_agree": 0,
            "neutral": 2,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-06-30T17:51:57.835232Z",
            "modified_at": "2016-06-30T17:54:22.029139Z"
        },
        {
            "id": 11504,
            "usera": 5930,
            "userb": 5931,
            "difference_percent": 33.3333333333333,
            "questions_counted": 3,
            "skipped": 0,
            "somewhat_agree": 0,
            "neutral": 2,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-06-30T17:51:57.841200Z",
            "modified_at": "2016-06-30T17:54:22.040006Z"
        },
        {
            "id": 11507,
            "usera": 5829,
            "userb": 5930,
            "difference_percent": 28.125,
            "questions_counted": 8,
            "skipped": 5,
            "somewhat_agree": 3,
            "neutral": 3,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-06-30T17:51:57.896192Z",
            "modified_at": "2016-06-30T17:54:22.046754Z"
        },
        {
            "id": 11505,
            "usera": 5906,
            "userb": 5930,
            "difference_percent": 35.0,
            "questions_counted": 10,
            "skipped": 6,
            "somewhat_agree": 3,
            "neutral": 4,
            "somewhat_disagree": 1,
            "strongly_disagree": 0,
            "created_at": "2016-06-30T17:51:57.871967Z",
            "modified_at": "2016-06-30T17:54:22.047967Z"
        },
        {
            "id": 11510,
            "usera": 5930,
            "userb": 5829,
            "difference_percent": 28.125,
            "questions_counted": 8,
            "skipped": 5,
            "somewhat_agree": 3,
            "neutral": 3,
            "somewhat_disagree": 0,
            "strongly_disagree": 0,
            "created_at": "2016-06-30T17:51:57.912132Z",
            "modified_at": "2016-06-30T17:54:22.050553Z"
        },
        {
            "id": 11506,
            "usera": 5930,
            "userb": 5906,
            "difference_percent": 35.0,
            "questions_counted": 10,
            "skipped": 6,
            "somewhat_agree": 3,
            "neutral": 4,
            "somewhat_disagree": 1,
            "strongly_disagree": 0,
            "created_at": "2016-06-30T17:51:57.878566Z",
            "modified_at": "2016-06-30T17:54:22.054714Z"
        }
    ]
}