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=-text&page=3
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 80,
    "next": "https://api.represent.me/api/groups/?ordering=-text&page=4",
    "previous": "https://api.represent.me/api/groups/?ordering=-text&page=2",
    "next_id": 4,
    "previous_id": 2,
    "results": [
        {
            "id": 57,
            "url": "https://api.represent.me/api/groups/57/",
            "name": "Is London's Housing Crisis Global of Local problem",
            "slug": "is-londons-housing-crisis-global-of-local-problem",
            "parent": null,
            "desc": "To get leaders and citizens at local level to start thinking about the future of housing in the U.K.  so that we can build a sustainable future for future generations.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/70295ef6-9fc0-499e-a010-cd90d79a9a26.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-05-31T12:47:13.759845Z",
            "modified_at": "2016-06-29T13:21:42.172255Z",
            "private": false,
            "default_share_email": 0,
            "member_count": 1,
            "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": 25,
            "url": "https://api.represent.me/api/groups/25/",
            "name": "AECB",
            "slug": "aecb",
            "parent": null,
            "desc": "Increasing engagement and knowledge-sharing amongst the AECB membership",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/3971-1jkx3j3.jpg",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2015-09-19T07:35:56.285000Z",
            "modified_at": "2016-06-29T13:21:42.153899Z",
            "private": false,
            "default_share_email": 0,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 6,
            "require_approval_to_join": true,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 72,
            "url": "https://api.represent.me/api/groups/72/",
            "name": "The Footprint Trust charity",
            "slug": "the-footprint-trust-charity",
            "parent": null,
            "desc": "Working to help those in fuel poverty on the Isle of Wight, UK. Promoting sustainable living through practical ideas and projects. Free home visits to help you stay in budget, we save the average household around £200 pa on their utility bills. Helping people and the planet.  www.footprint-trust.co.uk   Tel 01983 822282.  email info@footprint-trust.co.uk",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/23a17d33-1b0c-44c4-95b6-26430e47a43c.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-07-25T21:46:18.154461Z",
            "modified_at": "2016-07-25T21:46:18.163606Z",
            "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": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 47,
            "url": "https://api.represent.me/api/groups/47/",
            "name": "Devolution for Yorkshire",
            "slug": "devolution-for-yorkshire",
            "parent": null,
            "desc": "An economy twice the size of Wales and a population similar to Scotland, Yorkshire has the power of neither. This group advocates a Yorkshire parliament that has control of it's own future.",
            "image": null,
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-04-24T14:51:31.609234Z",
            "modified_at": "2016-06-29T13:21:42.144892Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 1,
            "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": 74,
            "url": "https://api.represent.me/api/groups/74/",
            "name": "Liberal Democrats",
            "slug": "liberal-democrats",
            "parent": null,
            "desc": "A group for Liberal Democrats to discuss policy and ideas.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/e4dede3e-9dea-4b66-9324-f80e5d2628e6.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-07-29T19:45:42.907295Z",
            "modified_at": "2016-07-29T19:45:42.914740Z",
            "private": false,
            "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": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 69,
            "url": "https://api.represent.me/api/groups/69/",
            "name": "London South Bank Students' Union",
            "slug": "london-south-bank-students-union",
            "parent": null,
            "desc": "Giving a digital voice to students of London South Bank University",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/cbd585b8-a307-4e26-8508-f1d1bfa6bd5c.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-07-09T14:47:14.480656Z",
            "modified_at": "2016-08-16T17:19:18.937585Z",
            "private": false,
            "default_share_email": 0,
            "member_count": 1,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 3,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": false,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 41,
            "url": "https://api.represent.me/api/groups/41/",
            "name": "Lewisham",
            "slug": "lewisham",
            "parent": null,
            "desc": "For residents of the borough of Lewisham, to help keep our representatives informed.",
            "image": null,
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-02-03T15:28:05.462000Z",
            "modified_at": "2016-07-08T20:59:26.901970Z",
            "private": false,
            "default_share_email": 0,
            "member_count": 3,
            "my_membership": null,
            "autoPublishQuestions": false,
            "requested_join": false,
            "questions_count": 2,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 0,
            "official": false
        },
        {
            "id": 48,
            "url": "https://api.represent.me/api/groups/48/",
            "name": "INTEGRAÇÃO TARIFÁRIA",
            "slug": "integracao-tarifaria",
            "parent": null,
            "desc": "Discutir o processo de integração tarifária no sistema de transportes públicos de passageiros em Salvador - Bahia - Brasil",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/093819d1-4548-4374-b8f0-8bfb85395241.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-05-01T20:02:35.763283Z",
            "modified_at": "2016-06-29T13:21:42.246680Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 1,
            "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": 75,
            "url": "https://api.represent.me/api/groups/75/",
            "name": "We Need Voices",
            "slug": "we-need-voices",
            "parent": null,
            "desc": "We Need Voices is an organisation dedicated to making sure your voice is heard in public life.",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/68c78561-2590-43c6-81a3-32a971eb9ecd.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2016-07-29T19:48:09.112287Z",
            "modified_at": "2016-07-29T19:48:09.120074Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 1,
            "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": 120,
            "url": "https://api.represent.me/api/groups/120/",
            "name": "Raincloud",
            "slug": "raincloud",
            "parent": null,
            "desc": "Raincloud",
            "image": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/130aecbf-143e-4da4-9956-10c7ddecfd54.png",
            "logo_image": null,
            "welcome_message": "",
            "created_at": "2017-01-12T16:36:50.789268Z",
            "modified_at": "2017-04-05T15:19:53.985359Z",
            "private": false,
            "default_share_email": 2,
            "member_count": 2,
            "my_membership": null,
            "autoPublishQuestions": true,
            "requested_join": false,
            "questions_count": 1,
            "require_approval_to_join": false,
            "secret": false,
            "canAskDefault": true,
            "votes_count": 3,
            "official": false
        }
    ]
}