Api::V1::ToursController API

Tours

Get tours for pro user

GET /api/v1/tours

Parameters

Name Description
token User token

Request

Headers

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

Route

GET /api/v1/tours?token=foobar159

Query Parameters

token: foobar159

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/"32cf0d4ac61ebda75952e46c6cc5837b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 7ea76a5e-a6fb-4790-9e4b-59e5c196d2b3
X-Runtime: 0.017007
Content-Length: 481

Status

200 OK

Body

{
  "tours": [
    {
      "id": 17,
      "uuid": "17",
      "tour_type": "medical",
      "status": "ongoing",
      "vehicle_type": "feet",
      "distance": 0,
      "organization_name": "Association 69",
      "organization_description": "Association description",
      "start_time": "2022-06-02T17:16:46.304+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.304+02:00",
      "tour_points": [

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