Find and filter train stations across Europe, including their location and local timezone.
API showdown///
- Train Travel
Train Travel API
- Delete a booking
List existing bookings
Create a booking
Get a booking
New Booking
Delete a booking
Train Travel API (1.0.0)
API for finding and booking train trips across Europe.
This API was created by Bump.sh for the entire OpenAPI community, for educational and demonstrative purposes.
Download OpenAPI description
Overview
Languages
Servers
Mock server
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/
Production
https://api.example.com/
- Mock serverhttps://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings
- Productionhttps://api.example.com/bookings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "data": [ { … }, { … } ], "links": { "self": "https://api.example.com/bookings", "next": "https://api.example.com/bookings?page=2" } }
- Mock serverhttps://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings
- Productionhttps://api.example.com/bookings
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"trip_id": "4f4e4e1-c824-4d63-b37a-d8d698862f1d",
"passenger_name": "John Doe",
"has_bicycle": true,
"has_dog": true
}'Response
{ "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "passenger_name": "John Doe", "has_bicycle": true, "has_dog": true, "links": { "self": "https://api.example.com/bookings/efdbb9d1-02c2-4bc3-afb7-6788d8782b1e" } }
- Mock serverhttps://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings/{bookingId}
- Productionhttps://api.example.com/bookings/{bookingId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
{ "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "passenger_name": "John Doe", "has_bicycle": true, "has_dog": true, "links": { "self": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" } }
- Mock serverhttps://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings/{bookingId}
- Productionhttps://api.example.com/bookings/{bookingId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- Mock serverhttps://innovario.apishowdown.com/_mock/catalog/api-showdown/api-hub/train-travel/openapi/newBooking
- Productionhttps://api.example.com/newBooking
application/json
{ "id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "trip_id": "efdbb9d1-02c2-4bc3-afb7-6788d8782b1e", "passenger_name": "John Doe", "has_bicycle": true, "has_dog": true, "links": { "self": "https://api.example.com/bookings/1725ff48-ab45-4bb5-9d02-88745177dedb" } }