Tours
| Name | Description |
|---|---|
| token | token |
| tour[tour_type] | Tour tour type |
| tour[vehicle_type] | Tour vehicle type |
| tour[distance] | Tour distance |
| tour[start_time] | Tour start time |
Content-Type: application/json Host: example.org Cookie:
POST api/v1/tours
{"token":"foobar160","tour":{"tour_type":"medical","status":"ongoing","vehicle_type":"feet","distance":123.456,"start_time":"2016-01-01T19:09:06.000+01:00"}}
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/"251180844f2ab280b6b05bdc3e3086f9" Cache-Control: max-age=0, private, must-revalidate X-Request-Id: c5624e99-2535-4a7e-8ed9-212a671c787c X-Runtime: 0.024715 Content-Length: 475
201 Created
{
"tour": {
"id": 18,
"uuid": "18",
"tour_type": "medical",
"status": "ongoing",
"vehicle_type": "feet",
"distance": 123,
"organization_name": "Association 71",
"organization_description": "Association description",
"start_time": "2016-01-01T19:09:06.000+01:00",
"end_time": null,
"number_of_people": 1,
"join_status": "accepted",
"number_of_unread_messages": 0,
"updated_at": "2022-06-02T17:16:46.360+02:00",
"tour_points": [
],
"author": {
"id": 162,
"display_name": "John D.",
"avatar_url": null,
"partner": null
}
}
}