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

{
    "returning": 1,
    "results": [
        {
            "id": 2129,
            "question": "I'd vote for a government which prioritised this way:",
            "description": "",
            "slug": "id-vote-for-a-government-which-prioritised-this-way",
            "my_vote": [],
            "choices": [
                {
                    "id": 444,
                    "url": "https://api.represent.me/api/question_choices/444/",
                    "text": "Environment > Society > Economy",
                    "mongo_number": null,
                    "direct_vote_count": 81,
                    "direct_value": 5.0,
                    "direct_sum": 162.0,
                    "direct_heat": 3.46746575342466,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 81,
                    "created_at": "2016-07-01T18:39:15.709248Z",
                    "modified_at": "2019-09-03T09:20:21.227061Z",
                    "liquid_vote_count": 81,
                    "liquid_value": 5.0,
                    "liquid_sum": 162.0,
                    "liquid_heat": 3.46746575342466,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 81,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 440,
                    "url": "https://api.represent.me/api/question_choices/440/",
                    "text": "Economy > Society > Environment",
                    "mongo_number": null,
                    "direct_vote_count": 54,
                    "direct_value": 5.0,
                    "direct_sum": 108.0,
                    "direct_heat": 2.31164383561644,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 54,
                    "created_at": "2016-07-01T18:39:15.700897Z",
                    "modified_at": "2019-09-03T09:20:21.245504Z",
                    "liquid_vote_count": 54,
                    "liquid_value": 5.0,
                    "liquid_sum": 108.0,
                    "liquid_heat": 2.31164383561644,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 54,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 442,
                    "url": "https://api.represent.me/api/question_choices/442/",
                    "text": "Society > Environment > Economy",
                    "mongo_number": null,
                    "direct_vote_count": 93,
                    "direct_value": 5.0,
                    "direct_sum": 186.0,
                    "direct_heat": 3.98116438356164,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 93,
                    "created_at": "2016-07-01T18:39:15.705787Z",
                    "modified_at": "2019-09-03T09:20:21.264011Z",
                    "liquid_vote_count": 93,
                    "liquid_value": 5.0,
                    "liquid_sum": 186.0,
                    "liquid_heat": 3.98116438356164,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 93,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 443,
                    "url": "https://api.represent.me/api/question_choices/443/",
                    "text": "Society > Economy > Environment",
                    "mongo_number": null,
                    "direct_vote_count": 66,
                    "direct_value": 5.0,
                    "direct_sum": 132.0,
                    "direct_heat": 2.82534246575342,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 66,
                    "created_at": "2016-07-01T18:39:15.707506Z",
                    "modified_at": "2019-09-03T09:20:21.281741Z",
                    "liquid_vote_count": 66,
                    "liquid_value": 5.0,
                    "liquid_sum": 132.0,
                    "liquid_heat": 2.82534246575342,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 66,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 441,
                    "url": "https://api.represent.me/api/question_choices/441/",
                    "text": "Economy > Environment > Society",
                    "mongo_number": null,
                    "direct_vote_count": 27,
                    "direct_value": 5.0,
                    "direct_sum": 54.0,
                    "direct_heat": 1.15582191780822,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 27,
                    "created_at": "2016-07-01T18:39:15.703964Z",
                    "modified_at": "2019-09-03T09:20:21.302509Z",
                    "liquid_vote_count": 27,
                    "liquid_value": 5.0,
                    "liquid_sum": 54.0,
                    "liquid_heat": 1.15582191780822,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 27,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 445,
                    "url": "https://api.represent.me/api/question_choices/445/",
                    "text": "Environment > Economy > Society",
                    "mongo_number": null,
                    "direct_vote_count": 26,
                    "direct_value": 5.0,
                    "direct_sum": 52.0,
                    "direct_heat": 1.11301369863014,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 26,
                    "created_at": "2016-07-01T18:39:15.710806Z",
                    "modified_at": "2019-09-03T09:20:21.322347Z",
                    "liquid_vote_count": 26,
                    "liquid_value": 5.0,
                    "liquid_sum": 52.0,
                    "liquid_heat": 1.11301369863014,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 26,
                    "polarisation": 0.447213595499958
                }
            ],
            "liquid_vote_count": 347,
            "liquid_value": 0.0,
            "liquid_sum": 694.0,
            "liquid_heat": 5.94178082191781,
            "liquid_consensus": 0.268011527377522,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 0,
            "polarisation": 0.0
        }
    ],
    "count": 1887,
    "unanswered": 1887
}