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

{
    "id": 27,
    "url": "https://api.represent.me/api/question_collections/27/",
    "user_url": "https://api.represent.me/api/users/7470/",
    "name": "Bernie Supporter Election Decisions",
    "user": {
        "id": 7470,
        "username": "joepbreslin",
        "first_name": "Joe",
        "last_name": "Breslin",
        "url": "https://api.represent.me/api/users/7470/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_9eae8d92d8b8424ebcbf274546bf5686.png",
        "age": 32,
        "bio": "",
        "created_at": "2016-11-10T20:33:36.989604Z",
        "modified_at": "2019-04-15T15:51:46.732295Z",
        "is_deleted": false,
        "last_answer_time": "2016-11-19T22:29:20.786232Z",
        "politician": null,
        "politician_info": null,
        "is_email_verified": true,
        "is_admin_verified": false,
        "is_facebook_verified": false,
        "is_google_verified": true,
        "is_twitter_verified": false,
        "is_linkedin_verified": false,
        "is_stripe_verified": false,
        "verification_count": 2,
        "verification_score": 77,
        "count_questions": 2,
        "count_votes": 29,
        "count_question_votes": 24,
        "count_friends": 0,
        "count_comment_votes": 0,
        "count_choice_votes": 5,
        "count_group_memberships": 2,
        "count_following_tags": 9,
        "count_comments": 0,
        "count_following_users": 2,
        "count_followers": 2,
        "karma": 0
    },
    "created_at": "2016-11-10T20:41:28.101645Z",
    "modified_at": "2017-03-08T10:32:40.270577Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=27",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/6d2655ca-00fe-4290-b48b-2c96ec3b5f24.png",
    "desc": "To better understand how Bernie supporters during the primary engaged in the 2016 Presidential election.",
    "username": "joepbreslin",
    "question_count": 2,
    "item_count": 0,
    "end_text": "To better understand how Bernie supporters during the primary engaged in the 2016 Presidential election.",
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": 0.0
}