Api::V1::EntouragesController API

Entourages

Get entourages from search

GET api/v1/entourages/search

Parameters

Name Description
token token
q A search string
types Comma separated; see: app/services/feed_services/types.rb
latitude User latitude
longitude User longitude
page page
per per

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

GET api/v1/entourages/search?token=foobar38&q=coffee

Query Parameters

token: foobar38
q: coffee

Response

Headers

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/"6a1b452c9dd38269bd2d73e121cf99b0"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ae5bd04f-81f5-4258-b6c5-074603788582
X-Runtime: 0.017723
Content-Length: 731

Status

200 OK

Body

{
  "entourages": [
    {
      "id": 13,
      "uuid": "eIF8UxayhM08",
      "title": "Solidarity coffee",
      "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.914+02:00",
      "updated_at": "2022-06-02T17:16:42.914+02:00",
      "description": null,
      "share_url": "https://app.entourage.social/actions/eIF8UxayhM08",
      "image_url": null,
      "online": false,
      "event_url": null,
      "display_report_prompt": false,
      "author": {
        "id": 40,
        "display_name": "John D.",
        "avatar_url": null,
        "partner": null,
        "partner_role_title": null
      },
      "location": {
        "latitude": 1.122,
        "longitude": 2.345
      }
    }
  ]
}