Api::V1::Users::ToursController API

Tours

Get tours

GET /api/v1/users/:user_id/tours

Parameters

Name Description
token token
user_id user
page page
per per
latitude Latitude
longitude Longitude
distance Distance from GPS coordinates from which Entourage should be found (km)
status open, closed, full, suspended, blacklisted

Request

Headers

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

Route

GET /api/v1/users/178/tours?token=foobar177

Query Parameters

token: foobar177

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/"ef793f8c6b644a8f92de1a3ff82aff96"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 6ab2349b-f0d5-4729-9840-8c056ba85101
X-Runtime: 0.024676
Content-Length: 448

Status

200 OK

Body

{
  "tours": [
    {
      "id": 23,
      "uuid": "23",
      "tour_type": "medical",
      "status": "ongoing",
      "vehicle_type": "feet",
      "distance": 0,
      "organization_name": null,
      "organization_description": null,
      "start_time": "2022-06-02T17:16:46.732+02:00",
      "end_time": null,
      "number_of_people": 1,
      "join_status": "not_requested",
      "number_of_unread_messages": 0,
      "updated_at": "2022-06-02T17:16:46.732+02:00",
      "tour_points": [

      ],
      "author": {
        "id": 178,
        "display_name": "John D.",
        "avatar_url": null,
        "partner": null
      }
    }
  ]
}