Api::V1::TourPointsController API

TourPoints

Create tour points

POST /api/v1/tours/:tour_id/tour_points

Parameters

Name Description
token token
tour_id tour
tour_points[latitude] Latitude
tour_points[longitude] Longitude
tour_points[passing_time] Time passed for an encounter

Request

Headers

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

Route

POST /api/v1/tours/6/tour_points

Body

{"token":"foobar134","format":"json","tour_points":[{"latitude":1.5,"longitude":1.5,"passing_time":"2015-07-07T12:31:43.000+02:00"}]}

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/"a29ee2b15c494311c52521766e44af56"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 115f0ffb-1767-4030-853c-2e5bf12e9ae7
X-Runtime: 0.011099
Content-Length: 15

Status

201 Created

Body

{
  "status": "ok"
}