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": 1769,
            "question": "How many hours per month are you active in a voluntary organisation?",
            "description": "",
            "slug": "how-many-hours-per-month-are-you-active-in-a-voluntary-organisation",
            "my_vote": [],
            "choices": [
                {
                    "id": 155,
                    "url": "https://api.represent.me/api/question_choices/155/",
                    "text": "None",
                    "mongo_number": 0,
                    "direct_vote_count": 31,
                    "direct_value": 5.0,
                    "direct_sum": 62.0,
                    "direct_heat": 1.53010858835143,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 31,
                    "created_at": "2016-03-20T04:30:05.411712Z",
                    "modified_at": "2018-12-18T06:20:44.303844Z",
                    "liquid_vote_count": 31,
                    "liquid_value": 5.0,
                    "liquid_sum": 62.0,
                    "liquid_heat": 1.53010858835143,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 31,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 158,
                    "url": "https://api.represent.me/api/question_choices/158/",
                    "text": "5-6 hours",
                    "mongo_number": 3,
                    "direct_vote_count": 4,
                    "direct_value": 5.0,
                    "direct_sum": 8.0,
                    "direct_heat": 0.197433366238894,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 4,
                    "created_at": "2016-03-20T04:30:05.421106Z",
                    "modified_at": "2018-12-18T06:20:44.318292Z",
                    "liquid_vote_count": 4,
                    "liquid_value": 5.0,
                    "liquid_sum": 8.0,
                    "liquid_heat": 0.197433366238894,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 4,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 157,
                    "url": "https://api.represent.me/api/question_choices/157/",
                    "text": "3-4 hours",
                    "mongo_number": 2,
                    "direct_vote_count": 9,
                    "direct_value": 5.0,
                    "direct_sum": 18.0,
                    "direct_heat": 0.444225074037512,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 9,
                    "created_at": "2016-03-20T04:30:05.417808Z",
                    "modified_at": "2018-12-18T06:20:44.332195Z",
                    "liquid_vote_count": 9,
                    "liquid_value": 5.0,
                    "liquid_sum": 18.0,
                    "liquid_heat": 0.444225074037512,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 9,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 159,
                    "url": "https://api.represent.me/api/question_choices/159/",
                    "text": "7-10 hours",
                    "mongo_number": 4,
                    "direct_vote_count": 6,
                    "direct_value": 5.0,
                    "direct_sum": 12.0,
                    "direct_heat": 0.296150049358342,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 6,
                    "created_at": "2016-03-20T04:30:05.425047Z",
                    "modified_at": "2018-12-18T06:20:44.345933Z",
                    "liquid_vote_count": 6,
                    "liquid_value": 5.0,
                    "liquid_sum": 12.0,
                    "liquid_heat": 0.296150049358342,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 6,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 160,
                    "url": "https://api.represent.me/api/question_choices/160/",
                    "text": "More than 10 hours",
                    "mongo_number": 5,
                    "direct_vote_count": 13,
                    "direct_value": 5.0,
                    "direct_sum": 26.0,
                    "direct_heat": 0.641658440276407,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 13,
                    "created_at": "2016-03-20T04:30:05.428057Z",
                    "modified_at": "2018-12-18T06:20:44.361754Z",
                    "liquid_vote_count": 13,
                    "liquid_value": 5.0,
                    "liquid_sum": 26.0,
                    "liquid_heat": 0.641658440276407,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 13,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 156,
                    "url": "https://api.represent.me/api/question_choices/156/",
                    "text": "1-2 hours",
                    "mongo_number": 1,
                    "direct_vote_count": 15,
                    "direct_value": 5.0,
                    "direct_sum": 30.0,
                    "direct_heat": 0.740375123395854,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 15,
                    "created_at": "2016-03-20T04:30:05.414801Z",
                    "modified_at": "2018-12-18T06:20:44.376081Z",
                    "liquid_vote_count": 15,
                    "liquid_value": 5.0,
                    "liquid_sum": 30.0,
                    "liquid_heat": 0.740375123395854,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 15,
                    "polarisation": 0.447213595499958
                }
            ],
            "liquid_vote_count": 78,
            "liquid_value": 0.0,
            "liquid_sum": 156.0,
            "liquid_heat": 1.47727272727273,
            "liquid_consensus": 0.397435897435897,
            "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
}