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

{
    "id": 120,
    "url": "https://api.represent.me/api/question_collections/120/",
    "user_url": "https://api.represent.me/api/users/41/",
    "name": "Breathing Space",
    "user": {
        "id": 41,
        "username": "gustavo montesdeoca_montes de",
        "first_name": "Gustavo",
        "last_name": "Montes De Oca",
        "url": "https://api.represent.me/api/users/41/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/1434630755357.jpg",
        "age": 39,
        "bio": "",
        "created_at": "2015-02-06T00:38:58.056000Z",
        "modified_at": "2019-04-15T15:54:56.010257Z",
        "is_deleted": false,
        "last_answer_time": "2017-06-28T16:59:20.981465Z",
        "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": 48,
        "count_votes": 416,
        "count_question_votes": 389,
        "count_friends": 0,
        "count_comment_votes": 1,
        "count_choice_votes": 27,
        "count_group_memberships": 4,
        "count_following_tags": 7,
        "count_comments": 1,
        "count_following_users": 2,
        "count_followers": 2,
        "karma": 0
    },
    "created_at": "2017-05-18T20:14:53.856305Z",
    "modified_at": "2017-05-18T21:43:39.584017Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=120",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/b4d4789c-59f7-47c3-ac69-022cc2279573.png",
    "desc": "",
    "username": "gustavo montesdeoca_montes de",
    "question_count": 7,
    "item_count": 0,
    "end_text": "Thank you. It is important that we recognise that we have more in common than what divides us. Our wellbeing and that of our loved ones is one of those things we all share. We all make difficult choices, but they tend to be focused around what we feel is best for our family.",
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": 0.0
}