Api::V1::ToursController API

Tours

Get tour

GET api/v1/tours/:id

Parameters

Name Description
id id
token token

Request

Headers

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

Route

GET api/v1/tours/19?token=foobar163

Query Parameters

token: foobar163

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/"3a310ebeee802b84d332930768c96d5a"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 1e53a3e8-e361-46ba-ad45-d58321569ae1
X-Runtime: 0.009203
Content-Length: 478

Status

200 OK

Body

{
  "tour": {
    "id": 19,
    "uuid": "19",
    "tour_type": "medical",
    "status": "ongoing",
    "vehicle_type": "feet",
    "distance": 0,
    "organization_name": "Association 73",
    "organization_description": "Association description",
    "start_time": "2022-06-02T17:16:46.388+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.388+02:00",
    "tour_points": [

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