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

{
    "returning": 1,
    "results": [
        {
            "id": 1809,
            "question": "How often do you pray?",
            "description": "",
            "slug": "how-often-do-you-pray",
            "my_vote": [],
            "choices": [
                {
                    "id": 214,
                    "url": "https://api.represent.me/api/question_choices/214/",
                    "text": "Less than once a year",
                    "mongo_number": 4,
                    "direct_vote_count": 34,
                    "direct_value": 5.0,
                    "direct_sum": 68.0,
                    "direct_heat": 1.21341898643826,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 34,
                    "created_at": "2016-03-20T04:30:06.223781Z",
                    "modified_at": "2020-01-10T18:15:43.144305Z",
                    "liquid_vote_count": 34,
                    "liquid_value": 5.0,
                    "liquid_sum": 68.0,
                    "liquid_heat": 1.21341898643826,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 34,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 210,
                    "url": "https://api.represent.me/api/question_choices/210/",
                    "text": "Several times per day",
                    "mongo_number": 0,
                    "direct_vote_count": 43,
                    "direct_value": 5.0,
                    "direct_sum": 86.0,
                    "direct_heat": 1.53461812990721,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 43,
                    "created_at": "2016-03-20T04:30:06.212888Z",
                    "modified_at": "2020-01-10T18:15:43.184755Z",
                    "liquid_vote_count": 43,
                    "liquid_value": 5.0,
                    "liquid_sum": 86.0,
                    "liquid_heat": 1.53461812990721,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 43,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 215,
                    "url": "https://api.represent.me/api/question_choices/215/",
                    "text": "Never",
                    "mongo_number": 5,
                    "direct_vote_count": 452,
                    "direct_value": 5.0,
                    "direct_sum": 904.0,
                    "direct_heat": 16.1313347608851,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 452,
                    "created_at": "2016-03-20T04:30:06.227316Z",
                    "modified_at": "2020-01-10T18:15:43.236656Z",
                    "liquid_vote_count": 452,
                    "liquid_value": 5.0,
                    "liquid_sum": 904.0,
                    "liquid_heat": 16.1313347608851,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 452,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 211,
                    "url": "https://api.represent.me/api/question_choices/211/",
                    "text": "Several times per week",
                    "mongo_number": 1,
                    "direct_vote_count": 69,
                    "direct_value": 5.0,
                    "direct_sum": 138.0,
                    "direct_heat": 2.46252676659529,
                    "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:06.215554Z",
                    "modified_at": "2020-01-10T18:15:43.258760Z",
                    "liquid_vote_count": 69,
                    "liquid_value": 5.0,
                    "liquid_sum": 138.0,
                    "liquid_heat": 2.46252676659529,
                    "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": 212,
                    "url": "https://api.represent.me/api/question_choices/212/",
                    "text": "Only during religious services",
                    "mongo_number": 2,
                    "direct_vote_count": 44,
                    "direct_value": 5.0,
                    "direct_sum": 88.0,
                    "direct_heat": 1.57030692362598,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 44,
                    "created_at": "2016-03-20T04:30:06.218330Z",
                    "modified_at": "2020-01-10T18:15:43.277319Z",
                    "liquid_vote_count": 44,
                    "liquid_value": 5.0,
                    "liquid_sum": 88.0,
                    "liquid_heat": 1.57030692362598,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 44,
                    "polarisation": 0.447213595499958
                },
                {
                    "id": 213,
                    "url": "https://api.represent.me/api/question_choices/213/",
                    "text": "Once a year",
                    "mongo_number": 3,
                    "direct_vote_count": 22,
                    "direct_value": 5.0,
                    "direct_sum": 44.0,
                    "direct_heat": 0.785153461812991,
                    "direct_consensus": 1.0,
                    "direct_skipped": 0,
                    "direct_minimum": 0,
                    "direct_low": 0,
                    "direct_medium": 0,
                    "direct_high": 0,
                    "direct_maximum": 22,
                    "created_at": "2016-03-20T04:30:06.220961Z",
                    "modified_at": "2020-01-10T18:15:43.295448Z",
                    "liquid_vote_count": 22,
                    "liquid_value": 5.0,
                    "liquid_sum": 44.0,
                    "liquid_heat": 0.785153461812991,
                    "liquid_consensus": 1.0,
                    "liquid_skipped": 0,
                    "liquid_minimum": 0,
                    "liquid_low": 0,
                    "liquid_medium": 0,
                    "liquid_high": 0,
                    "liquid_maximum": 22,
                    "polarisation": 0.447213595499958
                }
            ],
            "liquid_vote_count": 664,
            "liquid_value": 0.0,
            "liquid_sum": 1328.0,
            "liquid_heat": 9.19031141868512,
            "liquid_consensus": 0.680722891566265,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 0,
            "polarisation": 0.0
        }
    ],
    "count": 1894,
    "unanswered": 1894
}