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

{
    "id": 6,
    "url": "https://api.represent.me/api/question_collections/6/",
    "user_url": "https://api.represent.me/api/users/7/",
    "name": "10 questions to unite a divided Britain. Maybe.",
    "user": {
        "id": 7,
        "username": "eddowding",
        "first_name": "Ed",
        "last_name": "Dowding",
        "url": "https://api.represent.me/api/users/7/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_7_kD3OzJV.jpg",
        "age": 41,
        "bio": "Eventually, everything will be recognised as priceless.",
        "created_at": "2015-01-31T09:10:43.588000Z",
        "modified_at": "2019-07-13T20:17:07.348323Z",
        "is_deleted": false,
        "last_answer_time": "2019-03-15T11:37:17.678652Z",
        "politician": null,
        "politician_info": null,
        "is_email_verified": true,
        "is_admin_verified": true,
        "is_facebook_verified": true,
        "is_google_verified": true,
        "is_twitter_verified": true,
        "is_linkedin_verified": true,
        "is_stripe_verified": false,
        "verification_count": 7,
        "verification_score": 100,
        "count_questions": 219,
        "count_votes": 2119,
        "count_question_votes": 1925,
        "count_friends": 162,
        "count_comment_votes": 106,
        "count_choice_votes": 194,
        "count_group_memberships": 37,
        "count_following_tags": 18,
        "count_comments": 76,
        "count_following_users": 132,
        "count_followers": 68,
        "karma": 120
    },
    "created_at": "2016-06-29T16:08:45.515334Z",
    "modified_at": "2017-03-08T10:32:37.046505Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=6",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/3fdb6c7e-5250-4b5a-8e3b-74ac23724812.png",
    "desc": "Can we still all be friends?! OF COURSE we can! So what shall we get to work on? Take the quiz and find out what everyone agrees on!",
    "username": "eddowding",
    "question_count": 9,
    "item_count": 0,
    "end_text": null,
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": 0.0
}