API endpoint that allows groups to be viewed or edited.

filtering

http://localhost:8000/api/groups/?members__user=1

will get groups user 1 is a member of

extra filter API

http://localhost:8000/api/groups/?useradmin=1

will find groups where user 1 is an admin

http://localhost:8000/api/groups/?i_can_ask=true - gets groups you are a member of where you can ask questions

http://localhost:8000/api/groups/?i_can_ask=false - gets groups you are a member of where you cannot ask questions

meaning of fields

canAskDefault : new members can_ask flag will match this, controlling if they can ask questions to a group

require_approval_to_join : if True, a membership request will be created, instead of the user instantly joining the group `when the user attempts to join.

secret : prevents the group from showing in the groups list

autoPublishQuestions : users questions must be approved by admin before being added to the group

in detail view

check out unanswered to see questions in a group you have not answered

check out questions to see all questions in a group

check out join to join or request to join a group

check out leave to leave a group

check out enable_notifications

check out disable_notifications

If require_approval_to_join is true a request to join will be sent instead of instantly joining

check out members to see members of a group

GET /api/groups/?ordering=votes_count
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 80,
    "next": "https://api.represent.me/api/groups/?ordering=votes_count&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 73,
            "url": "https://api.represent.me/api/groups/73/",
            "name": "More United supporters",
            "slug": "more-united-supporters",
            "parent": null,
            "desc": "MoreUnited.uk is a new movement setting out to change British politics. This is a space where the open and tolerant supporters who feel the political system no longer works for them can discuss policies and ideas.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/847d7407-2e96-4638-9c12-4c05c64f778e.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-07-28T13:09:44.717903Z",
            "modified_at": "2017-08-16T11:36:58.152845Z",
            "private": false,
            "default_share_email": 0,
            "member_count": 23,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 79,
            "url": "https://api.represent.me/api/groups/79/",
            "name": "Australians for a Better Democracy",
            "slug": "australians-for-a-better-democracy",
            "parent": null,
            "desc": "The group has two purposes:\n\nThe first is to gather likeminded Australians together to make the most of this platform through cooperation.\n\nThe second is to draft a physical Better Democracy Charter, which we will then use to improve our actual government.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/448e5091-af0f-4a2c-9a84-525773d38c87.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-08-10T08:38:32.744422Z",
            "modified_at": "2016-09-27T06:39:31.055736Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 2,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 3,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 95,
            "url": "https://api.represent.me/api/groups/95/",
            "name": "The People's Parliament UK",
            "slug": "the-peoples-parliament-uk",
            "parent": null,
            "desc": "The People's Parliament UK seeks to redress the balance within the British political system, and to restore the people's sovereign right to govern themselves.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/b6b8827b-5f6b-47bf-b6de-442ed12d7b62.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-08-27T15:11:46.126500Z",
            "modified_at": "2016-08-27T15:11:46.134096Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 99,
            "url": "https://api.represent.me/api/groups/99/",
            "name": "SumOfUs",
            "slug": "sumofus",
            "parent": null,
            "desc": "For members of the SumOfUs community",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/49d9fa0f-b0e8-4096-8c61-117c80d67390.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-09-22T15:10:02.258579Z",
            "modified_at": "2016-09-22T15:10:53.895961Z",
            "private": false,
            "default_share_email": 0,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 1,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 105,
            "url": "https://api.represent.me/api/groups/105/",
            "name": "SURF Survivors Fund",
            "slug": "surf-survivors-fund",
            "parent": null,
            "desc": "Survivors Fund (SURF) works to deliver, fundraise and advocate for programmes that rebuild the lives of survivors of the genocide and the most vulnerable, that empower them and that foster sustainable integration and development in Rwanda.\n\nThis Represent group is to help us work with survivors and supporters to deliver our mission.\n\nhttp://survivors-fund.org.uk/  \nEmail: surfenquiries(at)survivors-fund.org.uk",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/def373cc-4c94-49f2-8b12-3e0f27b250b0.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-10-18T10:01:40.771109Z",
            "modified_at": "2016-10-18T10:07:42.499866Z",
            "private": true,
            "default_share_email": 0,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 107,
            "url": "https://api.represent.me/api/groups/107/",
            "name": "KKS AlfaBeta",
            "slug": "kks-alfabeta",
            "parent": null,
            "desc": "Krājaizdevu sabiedrības Alfa Beta biedru diskusijas un balsošanas platforma.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/ab61ab8e-f3ac-4794-9aee-4266e7087ec3.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-10-24T09:29:36.724359Z",
            "modified_at": "2016-10-24T09:29:36.733608Z",
            "private": true,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 97,
            "url": "https://api.represent.me/api/groups/97/",
            "name": "Promoting Change family",
            "slug": "promoting-change-family",
            "parent": null,
            "desc": "To create a conversation to explore how we would like the Promoting Change network to grow.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/f529a0a0-ad0a-4632-8023-9ca5b2458728.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-09-07T10:51:55.047168Z",
            "modified_at": "2016-11-03T21:09:41.949026Z",
            "private": true,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 3,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 108,
            "url": "https://api.represent.me/api/groups/108/",
            "name": "Lewes Liberal Democrats",
            "slug": "lewes-liberal-democrats",
            "parent": null,
            "desc": "Members of Liberal Democrats in the Lewes constituency",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/3c91651f-46d9-40b7-ba2e-f84e7d177324.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-11-06T19:08:34.326694Z",
            "modified_at": "2016-11-06T19:08:34.334286Z",
            "private": true,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 109,
            "url": "https://api.represent.me/api/groups/109/",
            "name": "NUS Student Sustainability Summit",
            "slug": "nus-student-sustainability-summit",
            "parent": null,
            "desc": "Discussing political education in students' unions. We will compare responses.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/e6ee648e-5300-440d-ab1d-4123964a1eab.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-11-07T13:30:48.303742Z",
            "modified_at": "2016-11-10T15:10:22.776941Z",
            "private": true,
            "default_share_email": 2,
            "member_count": 17,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 8,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 101,
            "url": "https://api.represent.me/api/groups/101/",
            "name": "Nederlands parlement",
            "slug": "nederlands-parlement",
            "parent": null,
            "desc": "Met voorstellen, moties en amendementen uit de tweede kamer.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/9712dee9-00a8-43c7-9173-47b7f4caa10c.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-09-24T22:35:37.597757Z",
            "modified_at": "2016-09-24T22:35:37.605642Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 0,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        }
    ]
}