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

{
    "id": 44,
    "url": "https://api.represent.me/api/question_collections/44/",
    "user_url": "https://api.represent.me/api/users/10074/",
    "name": "Richmond Youth Parliament Survey",
    "user": {
        "id": 10074,
        "username": "Max.Pietrangeli",
        "first_name": "Max",
        "last_name": "Pietrangeli",
        "url": "https://api.represent.me/api/users/10074/",
        "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_10074.jpg",
        "age": 20,
        "bio": "",
        "created_at": "2016-12-30T15:44:04.226460Z",
        "modified_at": "2019-04-15T15:53:43.517368Z",
        "is_deleted": false,
        "last_answer_time": "2017-07-12T18:52:19.554543Z",
        "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": 3,
        "verification_score": 87,
        "count_questions": 22,
        "count_votes": 480,
        "count_question_votes": 446,
        "count_friends": 0,
        "count_comment_votes": 0,
        "count_choice_votes": 34,
        "count_group_memberships": 3,
        "count_following_tags": 7,
        "count_comments": 0,
        "count_following_users": 1,
        "count_followers": 0,
        "karma": 0
    },
    "created_at": "2017-04-05T18:40:43.671675Z",
    "modified_at": "2017-05-13T12:45:45.222576Z",
    "questions_link": "https://api.represent.me/api/questions/?in_collections__parent=44",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/2b9df6fe-44b9-4cdb-bf5b-05d3a582a061.png",
    "desc": "Your Youth Parliament member, Max Pietrangeli, wants to know your views on certain issues to represent you as accurately as possible. Please only take part in this survey if you are 10-18 years old!",
    "username": "Max.Pietrangeli",
    "question_count": 20,
    "item_count": 0,
    "end_text": "Thank you! Please follow me on FB/Twitter to keep up to date with my work as MYP. FB: https://www.facebook.com/MaxPietraMYP. Twitter: https://twitter.com/MaxPietraMYP",
    "expire_at": null,
    "geo": null,
    "geo_url": null,
    "geo_info": null,
    "answered": null
}