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

{
    "returning": 1,
    "results": [
        {
            "id": 2881,
            "question": "Existing EU workers rights should be incorporated into UK law",
            "description": "\"The four main fields of EU regulation of labour rights include (1) individual labour rights, (2) anti-discrimination regulations, (3) rights to information, consultation, and participation at work, and (4) rights to job security. In virtually all cases, the EU follows the principle that member states can always create rights more beneficial to workers.\"\r\n\r\nOne of the more controversial aspects of EU legislation in the UK has been the regulation in the Working Time Directive of a maximum of 48-hour working week unless a worker individually consents. In other instances the UK has gone beyond minimum EU standards. For example, the 52 weeks of statutory maternity leave in the UK is considerably longer than the 14 weeks guaranteed by EU law.",
            "slug": "existing-eu-workers-rights-should-be-incorporated-into-uk-law",
            "my_vote": [],
            "choices": [],
            "liquid_vote_count": 3332,
            "liquid_value": 4.40666266506603,
            "liquid_sum": 4687.0,
            "liquid_heat": 242.694214876033,
            "liquid_consensus": 0.816626650660264,
            "liquid_skipped": 3,
            "liquid_minimum": 81,
            "liquid_low": 96,
            "liquid_medium": 257,
            "liquid_high": 851,
            "liquid_maximum": 2047,
            "polarisation": 0.250010592247892
        }
    ],
    "count": 1887,
    "unanswered": 1887
}