A view to compare questions

eg: http://127.0.0.1:8000/api/compare_questions/?questiona=1000&questionb=1001

questiona is the "outer" data - and questionb the "inner" \:exception So, if item results[1][5] = 24

this would mean that 24 people voted "1" on questionA and "5" on questionb

When comparing MCQ questions, the results dictionary keys will be the IDs of the QuestionChoice objects.

When comparing MCQ with likert, Likert rating will be the outer dict, no matter which way round they are passed in

Compare MCQ example: http://localhost:8000/api/compare_questions/?questiona=2087&questionb=2135

Likert<->Likert

MCQ<->MCQ

MCQ<->Likert returns results with Likert as the outer dict Likert<->MCQ returns results with Likert as the outer dict

GET /api/compare_questions/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "0": {
        "0": 4,
        "1": 0,
        "2": 0,
        "3": 0,
        "4": 0,
        "5": 0
    },
    "1": {
        "0": 0,
        "1": 1,
        "2": 0,
        "3": 0,
        "4": 1,
        "5": 0
    },
    "2": {
        "0": 3,
        "1": 0,
        "2": 2,
        "3": 0,
        "4": 7,
        "5": 1
    },
    "3": {
        "0": 0,
        "1": 0,
        "2": 0,
        "3": 0,
        "4": 0,
        "5": 0
    },
    "4": {
        "0": 4,
        "1": 1,
        "2": 5,
        "3": 0,
        "4": 7,
        "5": 1
    },
    "5": {
        "0": 3,
        "1": 1,
        "2": 0,
        "3": 0,
        "4": 0,
        "5": 1
    }
}