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

{
    "returning": 1,
    "results": [
        {
            "id": 3360,
            "question": "What is the highest level of education you've completed?",
            "description": "",
            "slug": "what-is-the-highest-level-of-education-youve-completed",
            "my_vote": [],
            "choices": [
                {
                    "id": 1068,
                    "url": "https://api.represent.me/api/question_choices/1068/",
                    "text": "University education, e.g (BA, BSc) or higher or equivalent",
                    "mongo_number": 3,
                    "direct_vote_count": 172,
                    "direct_value": 5.0,
                    "direct_sum": 344.0,
                    "direct_heat": 9.38864628820961,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 172,
                    "created_at": "2017-04-02T21:32:25.172538Z",
                    "modified_at": "2019-09-26T12:16:38.934600Z",
                    "liquid_vote_count": 172,
                    "liquid_value": 5.0,
                    "liquid_sum": 344.0,
                    "liquid_heat": 9.38864628820961,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 172,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 1069,
                    "url": "https://api.represent.me/api/question_choices/1069/",
                    "text": "Masters, PhD",
                    "mongo_number": 4,
                    "direct_vote_count": 73,
                    "direct_value": 5.0,
                    "direct_sum": 146.0,
                    "direct_heat": 3.98471615720524,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 73,
                    "created_at": "2017-04-02T21:32:25.177384Z",
                    "modified_at": "2019-09-26T12:16:38.952805Z",
                    "liquid_vote_count": 73,
                    "liquid_value": 5.0,
                    "liquid_sum": 146.0,
                    "liquid_heat": 3.98471615720524,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 73,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 1067,
                    "url": "https://api.represent.me/api/question_choices/1067/",
                    "text": "A Levels or equivalent",
                    "mongo_number": 2,
                    "direct_vote_count": 93,
                    "direct_value": 5.0,
                    "direct_sum": 186.0,
                    "direct_heat": 5.0764192139738,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 93,
                    "created_at": "2017-04-02T21:32:25.167521Z",
                    "modified_at": "2019-09-26T12:16:38.970721Z",
                    "liquid_vote_count": 93,
                    "liquid_value": 5.0,
                    "liquid_sum": 186.0,
                    "liquid_heat": 5.0764192139738,
                    "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": 1065,
                    "url": "https://api.represent.me/api/question_choices/1065/",
                    "text": "No academic or professional qualifications",
                    "mongo_number": 0,
                    "direct_vote_count": 15,
                    "direct_value": 5.0,
                    "direct_sum": 30.0,
                    "direct_heat": 0.818777292576419,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 15,
                    "created_at": "2017-04-02T21:32:25.137103Z",
                    "modified_at": "2019-09-26T12:16:38.989171Z",
                    "liquid_vote_count": 15,
                    "liquid_value": 5.0,
                    "liquid_sum": 30.0,
                    "liquid_heat": 0.818777292576419,
                    "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
                },
                {
                    "id": 1066,
                    "url": "https://api.represent.me/api/question_choices/1066/",
                    "text": "O Levels/CSE/GCSEs (any grades)",
                    "mongo_number": 1,
                    "direct_vote_count": 70,
                    "direct_value": 5.0,
                    "direct_sum": 140.0,
                    "direct_heat": 3.82096069868996,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 70,
                    "created_at": "2017-04-02T21:32:25.162479Z",
                    "modified_at": "2019-09-26T12:16:39.007389Z",
                    "liquid_vote_count": 70,
                    "liquid_value": 5.0,
                    "liquid_sum": 140.0,
                    "liquid_heat": 3.82096069868996,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 70,
                    "polarisation": 0.447213595499958
                }
            ],
            "liquid_vote_count": 423,
            "liquid_value": 0.0,
            "liquid_sum": 846.0,
            "liquid_heat": 9.23580786026201,
            "liquid_consensus": 0.40661938534279,
            "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
}