This is the documentation for version 1.0
of the API. Last update on Apr 30, 2020.
Base URL
http://api.mycompany.com/v1/trips
This is the documentation for version 1.0
of the API. Last update on Apr 30, 2020.
http://api.mycompany.com/v1/trips
Search for an available train trip between 2 stations, around a given departure date & time.
An array of available trips.
curl \
-X POST http://api.mycompany.com/v1/trips/search \
-H "Content-Type: application/json" \
-d '{"departure_station":"string","destination_station":"string","departure_around":"2022-05-04T09:42:00+00:00"}'
{
"departure_station": "string",
"destination_station": "string",
"departure_around": "2022-05-04T09:42:00+00:00"
}
[
{
"id": "string",
"departure_station": "string",
"arrival_station": "string",
"departure_at": "string",
"arrival_at": "string",
"cents": "string",
"train_code": "string"
}
]