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

{
    "returning": 1,
    "results": [
        {
            "id": 1796,
            "question": "My political views are typically...",
            "description": "",
            "slug": "my-political-views-are-typically",
            "my_vote": [],
            "choices": [
                {
                    "id": 190,
                    "url": "https://api.represent.me/api/question_choices/190/",
                    "text": "Left-wing",
                    "mongo_number": 1,
                    "direct_vote_count": 367,
                    "direct_value": 5.0,
                    "direct_sum": 734.0,
                    "direct_heat": 14.291277258567,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 367,
                    "created_at": "2016-03-20T04:30:05.974421Z",
                    "modified_at": "2019-09-15T22:47:38.074294Z",
                    "liquid_vote_count": 367,
                    "liquid_value": 5.0,
                    "liquid_sum": 734.0,
                    "liquid_heat": 14.291277258567,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 367,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 191,
                    "url": "https://api.represent.me/api/question_choices/191/",
                    "text": "Neutral",
                    "mongo_number": 2,
                    "direct_vote_count": 206,
                    "direct_value": 5.0,
                    "direct_sum": 412.0,
                    "direct_heat": 8.02180685358255,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 206,
                    "created_at": "2016-03-20T04:30:05.977403Z",
                    "modified_at": "2019-09-15T22:47:38.092571Z",
                    "liquid_vote_count": 206,
                    "liquid_value": 5.0,
                    "liquid_sum": 412.0,
                    "liquid_heat": 8.02180685358255,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 206,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 192,
                    "url": "https://api.represent.me/api/question_choices/192/",
                    "text": "Right-wing",
                    "mongo_number": 3,
                    "direct_vote_count": 69,
                    "direct_value": 5.0,
                    "direct_sum": 138.0,
                    "direct_heat": 2.68691588785047,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 69,
                    "created_at": "2016-03-20T04:30:05.980736Z",
                    "modified_at": "2019-09-15T22:47:38.110272Z",
                    "liquid_vote_count": 69,
                    "liquid_value": 5.0,
                    "liquid_sum": 138.0,
                    "liquid_heat": 2.68691588785047,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 69,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 193,
                    "url": "https://api.represent.me/api/question_choices/193/",
                    "text": "Very right-wing",
                    "mongo_number": 4,
                    "direct_vote_count": 7,
                    "direct_value": 5.0,
                    "direct_sum": 14.0,
                    "direct_heat": 0.272585669781931,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 7,
                    "created_at": "2016-03-20T04:30:05.983878Z",
                    "modified_at": "2019-09-15T22:47:38.130030Z",
                    "liquid_vote_count": 7,
                    "liquid_value": 5.0,
                    "liquid_sum": 14.0,
                    "liquid_heat": 0.272585669781931,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 7,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 189,
                    "url": "https://api.represent.me/api/question_choices/189/",
                    "text": "Very left-wing",
                    "mongo_number": 0,
                    "direct_vote_count": 112,
                    "direct_value": 5.0,
                    "direct_sum": 224.0,
                    "direct_heat": 4.3613707165109,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 112,
                    "created_at": "2016-03-20T04:30:05.971418Z",
                    "modified_at": "2019-09-15T22:47:38.148393Z",
                    "liquid_vote_count": 112,
                    "liquid_value": 5.0,
                    "liquid_sum": 224.0,
                    "liquid_heat": 4.3613707165109,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 112,
                    "polarisation": 0.447213595499958
                }
            ],
            "liquid_vote_count": 761,
            "liquid_value": 0.0,
            "liquid_sum": 1522.0,
            "liquid_heat": 11.460843373494,
            "liquid_consensus": 0.482260183968463,
            "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
}