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

{
    "id": 143,
    "url": "https://api.represent.me/api/question_collections/143/",
    "user_url": "https://api.represent.me/api/users/6561/",
    "name": "kdksks",
    "user": {
        "id": 6561,
        "username": "g_laures",
        "first_name": "Laures",
        "last_name": "GANDONOU",
        "url": "https://api.represent.me/api/users/6561/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_1839db141fd24cb29e7cebb61947eabb.png",
        "age": 32,
        "bio": "",
        "created_at": "2016-09-03T09:51:30.420141Z",
        "modified_at": "2019-05-29T16:43:41.235492Z",
        "is_deleted": false,
        "last_answer_time": "2019-05-29T16:35:32.665197Z",
        "politician": null,
        "politician_info": null,
        "is_email_verified": true,
        "is_admin_verified": false,
        "is_facebook_verified": false,
        "is_google_verified": false,
        "is_twitter_verified": false,
        "is_linkedin_verified": false,
        "is_stripe_verified": false,
        "verification_count": 1,
        "verification_score": 59,
        "count_questions": 0,
        "count_votes": 235,
        "count_question_votes": 194,
        "count_friends": 0,
        "count_comment_votes": 2,
        "count_choice_votes": 41,
        "count_group_memberships": 1,
        "count_following_tags": 4,
        "count_comments": 2,
        "count_following_users": 4,
        "count_followers": 0,
        "karma": 0
    },
    "created_at": "2018-06-20T15:22:15.305947Z",
    "modified_at": "2018-06-20T15:22:58.167961Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=143",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/58056d71-52f7-4b10-8d7e-6069e78e9cd9.png",
    "desc": null,
    "username": "g_laures",
    "question_count": 0,
    "item_count": 0,
    "end_text": "Hello",
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": 100
}