For AI agents: a documentation index is available at https://bump.sh/bump-examples/doc/train-travel-api/llms.txt. Markdown versions of each page are available by sending an Accept: text/markdown header, or by appending .md to the page URL.

Do not miss any Train Travel API changes, ever again

Subscribe to the Train Travel API changelog to be up to date on recent changes.

RSS

Changelog

Last update:
Compare
  • Navigation Tags: Custom sections "Search", "Booking & Payment"
  • Badge tags: Define some tags to some operations without x-topic (Bump.sh specific)
  • Servers have a name
  • New operation SUBSCRIBE /trips/{id} (custom verb defined via additionalOperations).
  • Search operation GET /stations is now deprecated, and badged as 'Removed next release', replaced by QUERY /stations (new verb supported via OAS 3.2 with badge Beta)
  • Examples:
    • favor Example Object syntax, and use new field dataValue instead of deprecated (and confusing) value
    • Use new field serializedValue for SUBSCRIBE /trips/{id} examples.
  • SecuritySchemes:
    • add oauth2MetadataUrl to existing oauth2
    • add a new scheme deviceAuthorization
3 structure changes including:
2 Additions
1 Modification
Modified 1
GET /stations
  • Operation is now deprecated
Added 2
QUERY /stations
SUBSCRIBE /trips/{id}
3 structure changes including:
3 Modifications
Modified 3 Breaking
GET /bookings/{bookingId}
  • Response
  • 200 response Modified
    • application/json content type Modified
      • trip_id, passenger_name properties Modified
        • Properties are now required
          Breaking
    • application/xml content type Modified
      • trip_id, passenger_name properties Modified
        • Properties are now required
          Breaking
POST /bookings
  • Body
  • application/json content type Modified
    • trip_id, passenger_name properties Modified
      • Properties are now required
        Breaking
  • application/xml content type Modified
    • trip_id, passenger_name properties Modified
      • Properties are now required
        Breaking
  • Response
  • 201 response Modified
    • application/json content type Modified
      • trip_id, passenger_name properties Modified
        • Properties are now required
          Breaking
    • application/xml content type Modified
      • trip_id, passenger_name properties Modified
        • Properties are now required
          Breaking
POST newBooking webhook
  • Body
  • application/json content type Modified
    • trip_id, passenger_name properties Modified
      • Properties are now required
        Breaking
2 structure changes including:
2 Modifications
Modified 2 Breaking
GET /trips
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data property Modified
        • self property Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • source property Modified
      • Card alternative Modified
        • cvc property Modified
          • Type went from integer to string
            Breaking
1 structure change including:
1 Modification
Modified 1 Breaking
POST newBooking webhook
  • Body
  • application/json content type Modified
    • Content type is now required
      Breaking
1 structure change including:
1 Modification
Modified 1
GET /stations
  • Response
  • 200 response Modified
    • application/json content type Modified
      • links property Added
3 structure changes including:
3 Modifications
Modified 3 Breaking
GET /bookings
  • Query
  • limit query parameter Added
GET /stations
  • Query
  • limit, country query parameters Added
GET /trips
  • Query
  • page query parameter Modified
    • Type went from number to integer
      Breaking
  • limit query parameter Added
1 structure change including:
1 Modification
Modified 1
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • source property Modified
      • Combinator went from anyOf to oneOf
  • Response
  • 200 response Modified
    • application/json content type Modified
      • source property Modified
        • Combinator went from anyOf to oneOf
1 structure change including:
1 Modification
Modified 1
GET /bookings
  • Query
  • page query parameter Added
1 structure change including:
1 Modification
Modified 1
GET /trips
  • Query
  • page query parameter Added
1 structure change including:
1 Modification
Modified 1 Breaking
GET /stations
  • Query
  • country query parameter Removed
    • Removing a resource is always breaking unless it was deprecated before
      Breaking
  • search query parameter Added
1 structure change including:
1 Modification
Modified 1 Breaking
GET /stations
  • Response
  • 200 response Modified
    • application/json content type Modified
      • links property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
  • Query
  • page, coordinates, country query parameters Added
1 structure change including:
1 Modification
Modified 1 Breaking
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • Content type is now required
      Breaking
1 structure change including:
1 Modification
Modified 1
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • source property Modified
      • Discriminator name is no longer object
  • Response
  • 200 response Modified
    • application/json content type Modified
      • source property Modified
        • Discriminator name is no longer object
5 structure changes including:
2 Additions
3 Modifications
Modified 3 Breaking
POST /bookings
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
  • application/xml content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
  • Response
  • 201 response Modified
    • application/json content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Added
    • application/xml content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • amount, currency, source properties Added
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, amount, currency, source, status properties Added
POST newBooking webhook
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
Added 2
DELETE /bookings/{bookingId}
GET /bookings/{bookingId}
5 structure changes including:
2 Breaking changes
3 Modifications
2 Removals
Modified 3 Breaking
POST /bookings
  • Body
  • application/json content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog properties Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • data property Added
  • application/xml content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog properties Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • data property Added
  • Response
  • 201 response Modified
    • application/json content type Modified
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • data property Added
    • application/xml content type Modified
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • data property Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • amount, currency, source properties Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • data property Added
  • Response
  • 200 response Modified
    • application/json content type Modified
      • id, amount, currency, source, status properties Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • data property Added
POST newBooking webhook
  • Body
  • application/json content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog properties Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • data property Added
Removed 2 Breaking
DELETE /bookings/{bookingId}
  • Removing a resource is always breaking unless it was deprecated before
    Breaking
GET /bookings/{bookingId}
  • Removing a resource is always breaking unless it was deprecated before
    Breaking
5 structure changes including:
2 Additions
3 Modifications
Modified 3 Breaking
POST /bookings
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
  • application/xml content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
  • Response
  • 201 response Modified
    • application/json content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Added
    • application/xml content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, trip_id, passenger_name, has_bicycle, has_dog properties Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • amount, currency, source properties Added
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data property Removed
        • Removing a resource is always breaking unless it was deprecated before
          Breaking
      • id, amount, currency, source, status properties Added
POST newBooking webhook
  • Body
  • application/json content type Modified
    • data property Removed
      • Removing a resource is always breaking unless it was deprecated before
        Breaking
    • trip_id, passenger_name, has_bicycle, has_dog properties Added
Added 2
DELETE /bookings/{bookingId}
GET /bookings/{bookingId}
6 structure changes including:
2 Additions
4 Modifications
Modified 4
GET /bookings
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data property Modified
    • application/xml content type Modified
      • data property Modified
  • Authentication
  • OAuth2 authentication method Added
GET /stations
  • Authentication
  • OAuth2 authentication method Added
GET /trips
  • Response
  • 400 response Added
  • Authentication
  • OAuth2 authentication method Added
POST newBooking webhook
  • Response
  • 200 response Added
Added 2
POST /bookings
POST /bookings/{bookingId}/payment
1 structure change including:
1 Addition
Added 1
POST newBooking webhook
4 structure changes including:
1 Breaking change
3 Modifications
1 Removal
Modified 3 Breaking
GET /bookings
  • Authentication
  • OAuth2 authentication method Removed
    • Removing a resource is always breaking unless it was deprecated before
      Breaking
GET /stations
  • Authentication
  • OAuth2 authentication method Removed
    • Removing a resource is always breaking unless it was deprecated before
      Breaking
GET /trips
  • Authentication
  • OAuth2 authentication method Removed
    • Removing a resource is always breaking unless it was deprecated before
      Breaking
Removed 1 Breaking
POST /bookings
  • Removing a resource is always breaking unless it was deprecated before
    Breaking
4 structure changes including:
4 Modifications
Modified 4
GET /bookings
  • Response
  • 200 response Modified
    • application/xml content type Added
  • 400 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 401 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 403 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 429 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 500 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
GET /stations
  • Response
  • 200 response Modified
    • application/xml content type Added
  • 400 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 401 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 403 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 429 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 500 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
GET /trips
  • Response
  • 200 response Modified
    • application/xml content type Added
  • 401 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 403 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 429 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 500 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
POST /bookings
  • Response
  • 201 response Modified
    • application/xml content type Added
  • 400 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 401 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 404 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 409 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 429 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 500 response Modified
    • application/problem+json content type Modified
      • Full types is now object
      • Problem.yaml property Added
    • application/problem+xml content type Added
  • Body
  • application/xml content type Added