Entourages
Name | Description |
---|---|
token | User token |
types | Comma separated; see: app/services/feed_services/types.rb |
latitude | User latitude |
longitude | User longitude |
distance | Distance from GPS coordinates from which Entourage should be found (km) |
page | page |
per | per |
show_past_events | True to include past events in the results |
time_range | Find entourages created in the last hours |
before | Find entourages created before a date, when no pagination is given |
partners_only | Boolean to get only partners |
status | open, closed, full, suspended, blacklisted |
Content-Type: application/json Host: example.org Cookie:
GET /api/v1/entourages?token=foobar35
token: foobar35
X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1; mode=block X-Content-Type-Options: nosniff X-Download-Options: noopen X-Permitted-Cross-Domain-Policies: none Referrer-Policy: strict-origin-when-cross-origin Access-Control-Allow-Origin: * Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY Content-Type: application/json; charset=utf-8 ETag: W/"46d9dac1b64bc41ba84ceea3203a0638" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: e3893a41-5cb5-44bf-8ce0-7494c6686880 X-Runtime: 0.027725 Content-Length: 720
200 OK
{ "entourages": [ { "id": 11, "uuid": "eJ_MLNb5uBqE", "title": "Foobar", "group_type": "action", "entourage_type": "ask_for_help", "display_category": "social", "status": "open", "public": false, "metadata": { "city": "", "display_address": "" }, "postal_code": null, "join_status": "accepted", "number_of_unread_messages": 0, "number_of_people": 1, "created_at": "2022-06-02T17:16:42.825+02:00", "updated_at": "2022-06-02T17:16:42.825+02:00", "description": null, "share_url": "https://app.entourage.social/actions/eJ_MLNb5uBqE", "image_url": null, "online": false, "event_url": null, "display_report_prompt": false, "author": { "id": 37, "display_name": "John D.", "avatar_url": null, "partner": null, "partner_role_title": null }, "location": { "latitude": 1.122, "longitude": 2.345 } } ] }