Light-weight API endpoint that allows Questions to be viewed or edited.

Searching and filtering

to find questions asked by molly, answered by chozabu, sorted by date of chozabs answer

http://localhost:8000/api/questions/?ordering=-votes__created_at&votes__user__username=chozabu&user__username=molly_bishop1

to find questions with keyword represent, in order of vote count

http://localhost:8000/api/questions/?ordering=-direct_vote_count&search=represent

pass &limit_count=10 to allow returning more than one question (up to 30) - may return less, but still at least 1 if there are any questions remaning

subset of data methods

pass &return_unanswered_count=1 to get the number of questions remaning for your query - instead of the next_question

pass &return_full_count=1 to get the number of questions for your query (including already answered) - instead of the next_question

pass &order=true or &order=1 to get the next question in collection order

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

{
    "returning": 1,
    "results": [
        {
            "id": 791,
            "question": "There should be a chiropractor, osteopath or appropriate physical therapist in every doctors' surgery, available on the NHS?",
            "description": "This would save money by helping people in pain more quickly, cutting down on pain killers prescribed, and getting people back to work quicker - estimated to save the NHS at least £750m per year (fewer operations, fewer prescribed drugs, cheaper salaries etc)",
            "slug": "there-should-be-a-chiropractor-osteopath-or-appropriate-physical-therapist-in-every-doctors-surgery-available-on-the-nhs",
            "my_vote": [],
            "choices": [],
            "liquid_vote_count": 62,
            "liquid_value": 3.67741935483871,
            "liquid_sum": 42.0,
            "liquid_heat": 2.67605633802817,
            "liquid_consensus": 0.451612903225806,
            "liquid_skipped": 11,
            "liquid_minimum": 3,
            "liquid_low": 10,
            "liquid_medium": 8,
            "liquid_high": 24,
            "liquid_maximum": 17,
            "polarisation": 0.132317060012862
        }
    ],
    "count": 1888,
    "unanswered": 1888
}