A view to create, edit and delete Question Collections

check out http://localhost:8000/api/questions/?in_collections__parent=2 to see questions associated with collection 2

or http://localhost:8000/api/question_colection_items/?parent=2 to see the connections

to copy someone's collection to yourself:

http://localhost:8000/api/question_colections/ID/copy/

to update order of items:

http://localhost:8000/api/question_colections/ID/update_order/

Request body for updating order should looks like this:

{
    "items": [
        {"id": item.id, "order": order},
        {"id": item.id, "order": order}
    ]
}
GET /api/question_collections/10/
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 10,
    "url": "https://api.represent.me/api/question_collections/10/",
    "user_url": "https://api.represent.me/api/users/6136/",
    "name": "How do you compare with Theresa May?",
    "user": {
        "id": 6136,
        "username": "PoliciesofTheresaMay",
        "first_name": "Policies of",
        "last_name": "Theresa May",
        "url": "https://api.represent.me/api/users/6136/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/2a068f4a-b8cd-4d45-a6c2-41bca3320936.png",
        "age": 63,
        "bio": "Theresa May isn't on Represent yet. Please tweet @Theresa_May to let her know you'd like to learn more of her values and priorities and show her more of yours @RepresentLive. Thank you! \n *******\n \nBecause Theresa May isn't yet on Represent we've compiled this profile from her policies, voting record, statements and tweets.",
        "created_at": "2016-07-12T11:11:46.033237Z",
        "modified_at": "2019-04-15T15:52:50.370511Z",
        "is_deleted": false,
        "last_answer_time": "2016-07-14T08:46:45.825537Z",
        "politician": null,
        "politician_info": null,
        "is_email_verified": false,
        "is_admin_verified": false,
        "is_facebook_verified": false,
        "is_google_verified": false,
        "is_twitter_verified": false,
        "is_linkedin_verified": false,
        "is_stripe_verified": false,
        "verification_count": 0,
        "verification_score": 35,
        "count_questions": 0,
        "count_votes": 27,
        "count_question_votes": 26,
        "count_friends": 0,
        "count_comment_votes": 0,
        "count_choice_votes": 1,
        "count_group_memberships": 2,
        "count_following_tags": 1,
        "count_comments": 0,
        "count_following_users": 1,
        "count_followers": 5,
        "karma": 0
    },
    "created_at": "2016-07-11T21:58:32Z",
    "modified_at": "2017-03-08T10:32:37.594192Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=10",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/77147fa7-ce35-474e-8e22-0c9e0b544d64.png",
    "desc": "... and what would you like to tell her? Answer here and we'll make sure everyone knows what you think!\r\n\r\nThis collection has been produced by researching Theresa May's leadership launch speech, public statements and voting record.\r\n\r\nSources:\r\nTheyWorkForYou - https://tinyurl.com/tw4uTM \r\nTheresa 2016 - https://tinyurl.com/h423sys\r\nDaily Telegraph - https://tinyurl.com/z3b4huw",
    "username": "PoliciesofTheresaMay",
    "question_count": 28,
    "item_count": 0,
    "end_text": null,
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": 0.0
}