Change Updates

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
Train Travel API

Changelog

Last update:
Compare
1 structure change including:
1 Modification
Modified 1
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • source attribute Modified
      • Discriminator name is no longer object

  • Response
  • 200 response Modified
    • application/json content type Modified
      • source attribute 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 attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • trip_id, passenger_name, has_bicycle, has_dog attributes Added
  • application/xml content type Modified
    • data attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • trip_id, passenger_name, has_bicycle, has_dog attributes Added
  • Response
  • 201 response Modified
    • application/json content type Modified
      • data attribute Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • id, trip_id, passenger_name, has_bicycle, has_dog attributes Added
    • application/xml content type Modified
      • data attribute Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • id, trip_id, passenger_name, has_bicycle, has_dog attributes Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • data attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • amount, currency, source attributes Added
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data attribute Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • id, amount, currency, source, status attributes Added
Webhook POST newBooking
  • Body
  • application/json content type Modified
    • data attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • trip_id, passenger_name, has_bicycle, has_dog attributes 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 attributes Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data attribute Added
  • application/xml content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog attributes Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data attribute Added
  • Response
  • 201 response Modified
    • application/json content type Modified
      • id, trip_id, passenger_name, has_bicycle, has_dog attributes Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • data attribute Added
    • application/xml content type Modified
      • id, trip_id, passenger_name, has_bicycle, has_dog attributes Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • data attribute Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • amount, currency, source attributes Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data attribute Added
  • Response
  • 200 response Modified
    • application/json content type Modified
      • id, amount, currency, source, status attributes Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • data attribute Added
Webhook POST newBooking
  • Body
  • application/json content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog attributes Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data attribute 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 attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • trip_id, passenger_name, has_bicycle, has_dog attributes Added
  • application/xml content type Modified
    • data attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • trip_id, passenger_name, has_bicycle, has_dog attributes Added
  • Response
  • 201 response Modified
    • application/json content type Modified
      • data attribute Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • id, trip_id, passenger_name, has_bicycle, has_dog attributes Added
    • application/xml content type Modified
      • data attribute Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • id, trip_id, passenger_name, has_bicycle, has_dog attributes Added
POST /bookings/{bookingId}/payment
  • Body
  • application/json content type Modified
    • data attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • amount, currency, source attributes Added
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data attribute Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • id, amount, currency, source, status attributes Added
Webhook POST newBooking
  • Body
  • application/json content type Modified
    • data attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • trip_id, passenger_name, has_bicycle, has_dog attributes 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 attribute Modified
    • application/xml content type Modified
      • data attribute Modified
  • Authentication
  • OAuth2 authentication method Added
GET /stations
  • Authentication
  • OAuth2 authentication method Added
GET /trips
  • Response
  • 400 response Added
  • Authentication
  • OAuth2 authentication method Added
Webhook POST newBooking
  • Response
  • 200 response Added
Added 2
POST /bookings
POST /bookings/{bookingId}/payment
1 structure change including:
1 Addition
Added 1
Webhook POST newBooking
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
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 401 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 403 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 429 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 500 response Modified
    • application/problem+json content type Modified
      • Type 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
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 401 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 403 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 429 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 500 response Modified
    • application/problem+json content type Modified
      • Type 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
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 403 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 429 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 500 response Modified
    • application/problem+json content type Modified
      • Type 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
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 401 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 404 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 409 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 429 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • 500 response Modified
    • application/problem+json content type Modified
      • Type is now object

      • Problem.yaml property Added
    • application/problem+xml content type Added
  • Body
  • application/xml content type Added
4 structure changes including:
4 Modifications
Modified 4 Breaking
GET /bookings
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data attribute Modified
        • Removing polymorphism is always breaking

          Breaking

GET /stations
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data attribute Modified
        • Removing polymorphism is always breaking

          Breaking

GET /trips
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data attribute Modified
        • Removing polymorphism is always breaking

          Breaking

POST /bookings
  • Body
  • application/json content type Modified
    • data attribute Modified
      • Removing polymorphism is always breaking

        Breaking

      • data property Modified
        • Removing polymorphism is always breaking

          Breaking

  • Response
  • 201 response Modified
    • application/json content type Modified
      • data attribute Modified
        • Removing polymorphism is always breaking

          Breaking

      • links attribute Modified
4 structure changes including:
4 Modifications
Modified 4 Breaking
GET /bookings
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data attribute Modified
        • Combinator is now oneOf

        • object-1 alternative Modified
          • Type went from array[object] to object

            Breaking

        • array-2 alternative Added
  • 400 response Added
GET /stations
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data attribute Modified
        • Combinator is now oneOf

        • object-1 alternative Modified
          • Type went from array[object] to object

            Breaking

        • array-2 alternative Added
  • 400 response Added
GET /trips
  • Response
  • 200 response Modified
    • application/json content type Modified
      • data attribute Modified
        • Combinator is now oneOf

        • object-1 alternative Modified
          • Type went from array[object] to object

            Breaking

        • array-2 alternative Added
POST /bookings
  • Body
  • application/json content type Modified
    • data attribute Modified
      • Combinator is now oneOf

      • object-1 alternative Modified
      • array-2 alternative Added
    • links attribute Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

  • Response
  • 201 response Modified
    • application/json content type Modified
      • booking_id, trip_id, passenger_name, has_bicycle, has_dog attributes Removed
        • Removing a resource is always breaking unless it was deprecated before

          Breaking

      • data, links attributes Added
4 structure changes including:
1 Addition
3 Modifications
Modified 3 Breaking
GET /stations
  • Response
  • 200 response Modified
    • application/json content type Modified
      • Type went from array[object] to object

        Breaking

      • data, links attributes Added
GET /trips
  • Response
  • 200 response Modified
    • application/json content type Modified
      • Type went from array[object] to object

        Breaking

      • data, links attributes Added
POST /bookings
  • Body
  • application/json content type Modified
    • trip_id, passenger_name, has_bicycle, has_dog attributes Removed
      • Removing a resource is always breaking unless it was deprecated before

        Breaking

    • data, links attributes Added
Added 1
GET /bookings