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

{
    "returning": 1,
    "results": [
        {
            "id": 3604,
            "question": "Restore the Education Maintenance Allowance (EMA) for 16 to 18-year-olds in England",
            "description": "The EMA is a financial scheme applicable to students and those undertaking unpaid work-based learning in Wales, Scotland and Northern Ireland and aged between 16-19 whose parents have a certain level of taxable income. It is no longer paid in England. It applies to those doing, or applying to do, at least 12 hours of guided learning on further education courses in school sixth forms, sixth form colleges and Further Education colleges.",
            "slug": "restore-the-education-maintenance-allowance-ema-for-16-to-18-year-olds-in-england",
            "my_vote": [],
            "choices": [],
            "liquid_vote_count": 2196,
            "liquid_value": 3.95446265938069,
            "liquid_sum": 2096.0,
            "liquid_heat": 185.159914712153,
            "liquid_consensus": 0.613387978142076,
            "liquid_skipped": 0,
            "liquid_minimum": 104,
            "liquid_low": 135,
            "liquid_medium": 371,
            "liquid_high": 733,
            "liquid_maximum": 853,
            "polarisation": 0.155611294152131
        }
    ],
    "count": 1887,
    "unanswered": 1887
}