✨ Allow departureReal and arrivalReal for manual trip creation in API #2553
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi 👋
this is my PR for my feature request (discussions/2499), to allow departureReal and arrivalReal in manual trip creation.
Effected API-Endpoint:
POST https://traewelling.de/api/v1/trains/trip
New Parameters:
originDepartureReal
destinationArrivalReal
stopovers.*.departureReal
stopovers.*.arrivalReal
Example data (with arrivalReal, departureReal and so on):
{"originId":5903,"originDeparturePlanned":"2022-12-31T17:12:00.000+01:00","originDepartureReal":"2022-12-31T17:13:00.000+01:00","destinationId":5550,"destinationArrivalPlanned":"2022-12-31T18:07:00.000+01:00","destinationArrivalReal":"2022-12-31T18:59:00.000+01:00","lineName":"EC 44","journeyNumber":null,"operatorId":null,"category":"national","stopovers":[{"stationId":5383,"departure":"2022-12-31T17:59:00.000+01:00","departureReal":"2022-12-31T18:11:00.000+01:00","arrival":"2022-12-31T17:55:00.000+01:00", "arrivalReal":"2022-12-31T18:01:00.000+01:00"}]}
Kind regards
tiuub