Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Allow departureReal and arrivalReal for manual trip creation in API #2553

Merged
merged 5 commits into from May 21, 2024

Conversation

tiuub
Copy link
Contributor

@tiuub tiuub commented May 9, 2024

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

@MrKrisKrisu MrKrisKrisu changed the title Allow departureReal and arrivalReal for manual trip creation in API ✨ Allow departureReal and arrivalReal for manual trip creation in API May 21, 2024
@MrKrisKrisu MrKrisKrisu merged commit 62caf1b into Traewelling:develop May 21, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants