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

{
    "id": 47,
    "url": "https://api.represent.me/api/question_collections/47/",
    "user_url": "https://api.represent.me/api/users/4680/",
    "name": "General election 2017: what's important to you?",
    "user": {
        "id": 4680,
        "username": "kcorrick",
        "first_name": "Kathryn",
        "last_name": "Corrick",
        "url": "https://api.represent.me/api/users/4680/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_4680_R4815ev.jpg",
        "age": 45,
        "bio": "",
        "created_at": "2016-01-03T09:29:59Z",
        "modified_at": "2019-10-31T11:13:03.014276Z",
        "is_deleted": false,
        "last_answer_time": "2019-06-06T16:17:08.901183Z",
        "politician": null,
        "politician_info": null,
        "is_email_verified": true,
        "is_admin_verified": true,
        "is_facebook_verified": true,
        "is_google_verified": false,
        "is_twitter_verified": false,
        "is_linkedin_verified": false,
        "is_stripe_verified": false,
        "verification_count": 3,
        "verification_score": 100,
        "count_questions": 191,
        "count_votes": 934,
        "count_question_votes": 822,
        "count_friends": 47,
        "count_comment_votes": 43,
        "count_choice_votes": 112,
        "count_group_memberships": 18,
        "count_following_tags": 14,
        "count_comments": 47,
        "count_following_users": 227,
        "count_followers": 32,
        "karma": 2
    },
    "created_at": "2017-04-18T10:31:52Z",
    "modified_at": "2017-04-25T11:20:54.439581Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=47",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/ea16f6c8-41b2-46fa-84a8-05cab2aab35a.png",
    "desc": "The Prime Minister has called a general election for 8 June. The political parties are divided on what's important and what the country thinks. What's important to you?",
    "username": "kcorrick",
    "question_count": 10,
    "item_count": 0,
    "end_text": "Thank you for taking part. We will publish the results on 19 May, before MPs go to vote.",
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": 0.0
}