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

{
    "id": 17,
    "url": "https://api.represent.me/api/question_collections/17/",
    "user_url": "https://api.represent.me/api/users/6449/",
    "name": "Votecrafting the Better Democracy Charter",
    "user": {
        "id": 6449,
        "username": "eamonnoflaherty2",
        "first_name": "Eamonn",
        "last_name": "O'Flaherty",
        "url": "https://api.represent.me/api/users/6449/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_6449.jpg",
        "age": 32,
        "bio": "",
        "created_at": "2016-08-09T12:21:14.655952Z",
        "modified_at": "2019-04-15T15:53:31.354679Z",
        "is_deleted": false,
        "last_answer_time": "2016-10-02T01:20:10.642978Z",
        "politician": null,
        "politician_info": null,
        "is_email_verified": true,
        "is_admin_verified": false,
        "is_facebook_verified": true,
        "is_google_verified": true,
        "is_twitter_verified": false,
        "is_linkedin_verified": false,
        "is_stripe_verified": false,
        "verification_count": 4,
        "verification_score": 94,
        "count_questions": 7,
        "count_votes": 104,
        "count_question_votes": 98,
        "count_friends": 0,
        "count_comment_votes": 0,
        "count_choice_votes": 6,
        "count_group_memberships": 3,
        "count_following_tags": 6,
        "count_comments": 1,
        "count_following_users": 3,
        "count_followers": 0,
        "karma": 0
    },
    "created_at": "2016-08-22T08:00:11.358604Z",
    "modified_at": "2016-08-22T08:02:52.918736Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=17",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/01105b04-f8b4-4a9f-b456-329ab6f1ac6a.png",
    "desc": "The Better Democracy Charter movement seeks to formulate a document which can be used to dramaticaly improve our democratic system of government.\n\n\nWe'll be collaborating, drafting and providing feedback on possible inclusions into it, for it's ratification in late 2016.\n\n\nIdeas are to be neutral, concise, fluent and ideally expressed as a positive (ie. \"we want to do this\" rather than \"we don't want to do this\".)",
    "username": "eamonnoflaherty2",
    "question_count": 0,
    "item_count": 0,
    "end_text": null,
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": 100
}