-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightjet-api.yaml
1376 lines (1373 loc) · 49.9 KB
/
nightjet-api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.0
info:
title: NightJet API
version: 1.0.0
servers:
- url: https://www.nightjet.com/nj-booking-ocp
description: nightjet.com API
paths:
/init/start:
post:
tags:
- Initialize
summary: Initialize base data.
description: Get public ID, base URLs, enabled payment methods, max booking date, and i18n data.
parameters:
- in: header
name: Referer
schema:
type: string
required: true
example: https://www.nightjet.com/
requestBody:
$ref: '#/components/requestBodies/InitRequest'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/InitResponse'
/stations/get:
get:
tags:
- Stations
summary: Get Specific Station
description: Returns a station object for specified EVA number.
parameters:
- in: query
name: number
schema:
type: integer
minimum: 1000001
maximum: 9999999
description: 7-digit EVA number
required: true
example: 8796001
- in: query
name: lang
schema:
type: string
enum: [ de, en, int ]
description: station name localization
example: de
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StationListEntry'
'400':
description: Bad Request
/stations/find:
get:
tags:
- Stations
summary: List Stations
description: |-
Returns a list of all stations with NightJet service. Sort and filter list using parameters.
parameters:
- in: query
name: lang
schema:
type: string
enum: [ de, en, int ]
description: station name localization
example: de
- in: query
name: country
schema:
type: string
description: 2-letter UIC country code; start list with stations from specified country
example: de
- in: query
name: name
schema:
type: string
description: only display stations with same prefix
example: Berlin
- in: query
name: evaFrom
schema:
type: integer
description: 7-digit EVA number; only display stations with service from specified station
example: 8796001
- in: query
name: evaTo
schema:
type: integer
description: 7-digit EVA number; only display stations with service to specified station
example: 8796001
- in: query
name: t
schema:
type: integer
description: UNIX timestamp in milliseconds (ms)
example: 1693440000000
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/StationList'
/countries/{direction}/station/{eva}:
get:
tags:
- Countries
summary: Country <-> Station Search
description: |-
Returns a list of objects containing information about countries with currently existing and operating night train connections to/from the requested station.
parameters:
- in: path
name: direction
schema:
type: string
enum: [ to, from ]
required: true
description: travel direction ("to" or "from" specified station)
- in: path
name: eva
schema:
type: integer
minimum: 1000001
maximum: 9999999
required: true
description: 7-digit EVA number of train station
example: 8010101
- name: carTransport
in: query
schema:
type: boolean
description: Indicate whether train should offer car transport.
example: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/CountryList'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/countries/{direction}/country/{uic}:
get:
tags:
- Countries
summary: Country <-> Country Search
description: |-
Returns a list of objects containing information about countries with currently existing and operating night train connections to/from the requested country.
Possible values for UIC country codes currently include (as of June 2023):
- 51 (Poland)
- 54 (Czechia)
- 55 (Hungary)
- 56 (Slovakia)
- 78 (Croatia)
- 79 (Slovenia)
- 80 (Germany)
- 81 (Austria)
- 83 (Italy)
- 84 (Netherlands)
- 85 (Switzerland)
- 87 (France)
- 88 (Belgium)
Other valid UIC country codes return 200 OK with an empty list in the response body.
parameters:
- in: path
name: direction
schema:
type: string
enum: [ to, from ]
required: true
description: travel direction ("to" or "from" specified country)
- in: path
name: uic
schema:
type: integer
minimum: 10
maximum: 99
required: true
description: 2-digit UIC country code
example: 80
- name: carTransport
in: query
schema:
type: boolean
description: Indicate whether train should offer car transport.
example: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/CountryList'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/destinations/country/{uicFrom}/country/{uicTo}/{travelDate}:
get:
tags:
- Destinations
summary: Train Relation Search (Country -> Country)
description: |-
Returns a list of night train connections between two countries on a given date. If the same country is used for both "from" and "to", all trains traversing that country will be returned.
parameters:
- in: path
name: uicFrom
schema:
type: integer
minimum: 10
maximum: 99
required: true
description: 2-digit UIC country code of departure country
example: 80
- in: path
name: uicTo
schema:
type: integer
minimum: 10
maximum: 99
required: true
description: 2-digit UIC country code of arrival country
example: 81
- in: path
name: travelDate
schema:
type: string
format: date
required: true
description: travel date (YYYY-MM-DD)
example: 2023-08-31
- name: carTransport
in: query
schema:
type: boolean
description: Indicate whether train should offer car transport.
example: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/TrainRelation'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/destinations/country/{uicFrom}/station/{evaTo}/{travelDate}:
get:
tags:
- Destinations
summary: Train Relation Search (Country -> Station)
description: |-
Returns a list of night train connections from a country to a station on a given date.
parameters:
- in: path
name: uicFrom
schema:
type: integer
minimum: 10
maximum: 99
required: true
description: 2-digit UIC country code of departure country
example: 80
- in: path
name: evaTo
schema:
type: integer
minimum: 1000001
maximum: 9999999
required: true
description: 7-digit EVA number of arrival train station
example: 8010101
- in: path
name: travelDate
schema:
type: string
format: date
required: true
description: travel date (YYYY-MM-DD)
example: 2023-08-31
- name: carTransport
in: query
schema:
type: boolean
description: Indicate whether train should offer car transport.
example: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/TrainRelation'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/destinations/station/{evaFrom}/country/{uicTo}/{travelDate}:
get:
tags:
- Destinations
summary: Train Relation Search (Station -> Country)
description: |-
Returns a list of night train connections from a station to a country on a given date.
parameters:
- in: path
name: evaFrom
schema:
type: integer
minimum: 1000001
maximum: 9999999
required: true
description: 7-digit EVA number of departure train station
example: 8010101
- in: path
name: uicTo
schema:
type: integer
minimum: 10
maximum: 99
required: true
description: 2-digit UIC country code of arrival country
example: 80
- in: path
name: travelDate
schema:
type: string
format: date
required: true
description: travel date (YYYY-MM-DD)
example: 2023-08-31
- name: carTransport
in: query
schema:
type: boolean
description: Indicate whether train should offer car transport.
example: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/TrainRelation'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/destinations/partner/{travelDate}:
get:
tags:
- Destinations
summary: Train Relation Search (Station -> Country)
description: |-
Returns a list of night train connections from a station to a country on a given date.
parameters:
- in: path
name: travelDate
schema:
type: string
format: date
required: true
description: journey date (YYYY-MM-DD)
example: 2023-08-31
- name: carTransport
in: query
schema:
type: boolean
description: Indicate whether train must offer car transport ("false" may also return trains with car transport).
example: true
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/TrainRelationList'
/destinations/train/{trainName}/{date}:
get:
tags:
- Destinations
summary: Train Details Search
description: |-
Returns an object containing details for the specified train and date, including stations and arrival/departure times along the route. Details will be displayed even if no train is running on the specified date (default route data displayed in that case?)
parameters:
- in: path
name: trainName
schema:
type: string
required: true
description: train type and number, separated with a space
example: EN 60237
- in: path
name: date
schema:
type: string
format: date
required: true
description: journey date (YYYY-MM-DD)
example: 2023-08-31
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/TrainDetails'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/destinations/offers/{trainName}/{evaFrom}/{evaTo}/{timestamp}:
get:
tags:
- Destinations
summary: Train Price Search
description: |-
Returns a list of up to three journeys of a given train between two train stations, containing the cheapest available prices for each comfort class offered.
parameters:
- in: path
name: trainName
schema:
type: string
required: true
description: train type and number, separated with a space
example: EN 60237
- in: path
name: evaFrom
schema:
type: integer
minimum: 1000001
maximum: 9999999
required: true
description: 7-digit EVA number of departure train station
example: 8000096
- in: path
name: evaTo
schema:
type: integer
minimum: 1000001
maximum: 9999999
required: true
description: 7-digit EVA number of arrival train station
example: 7800013
- in: path
name: timestamp
schema:
type: integer
required: true
description: journey date as UNIX timestamp in milliseconds (ms)
example: 1693440000000
- name: forward
in: query
schema:
type: boolean
description: |-
search for journeys before (false) or after (true) specified journey date (default: true)
example: true
- name: max
in: query
schema:
type: integer
minimum: 1
maximum: 3
description: 'number of results (1-3; default: 3)'
example: 3
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/TrainOffers'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/connection/find/{evaFrom}/{evaTo}/{date}/{time}:
get:
tags:
- Connection
summary: Train Connection Search
description: |-
Find NightJet connections between two stations at a specified date and time. Returns a list of next possible connections with options for sorting and filtering.
parameters:
- in: path
name: evaFrom
schema:
type: integer
minimum: 1000001
maximum: 9999999
required: true
description: 7-digit EVA number of departure train station
example: 8796001
- in: path
name: evaTo
schema:
type: integer
minimum: 1000001
maximum: 9999999
required: true
description: 7-digit EVA number of arrival train station
example: 8103000
- in: path
name: date
schema:
type: number
required: true
description: journey date (DDMMYYYY)
example: 23062023
- in: path
name: time
schema:
type: string
required: true
description: journey time (HH:mm, 24h format)
example: 13:37
- name: skip
in: query
schema:
type: number
minimum: 0
description: skip specified number of results closest to search date-time
example: 3
- name: limit
in: query
schema:
type: integer
minimum: 1
description: 'limit number of results to specified value (default: 6)'
example: 3
- name: backward
in: query
schema:
type: boolean
description: 'search backwards in time from search parameter (default: false)'
example: false
- name: lang
in: query
schema:
type: string
description: |-
2-letter UIC country code which changes localization of formatted date strings containing day of week and month (default: en)
Note: This does not change train station names contained in response!
example: de
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Connection'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/offer/get:
post:
tags:
- Offer
summary: Get offers for search parameters
parameters:
- in: header
name: X-Token
description: JWT token from endpoint /init/start
schema:
type: string
required: true
example: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDUxNzg1OTEsInB1YmxpY0lkIjoiMDI3ZjQ2NzBjN2ViNGNmNzkzZDUxZjY5ODIzNTM3MDUifQ.dLYVnof-vbdlDjIZ0Mwzy9shAAwXRj3nC1dkc2hY1Ow
requestBody:
$ref: '#/components/requestBodies/OfferRequest'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/OfferResponse'
components:
requestBodies:
InitRequest:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/InitRequest'
OfferRequest:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/OfferRequest'
schemas:
Connection:
description: contains search results for connection between two train stations
type: object
properties:
evaFrom:
description: 7-digit EVA number of departure station
type: string
example: 8796001
evaTo:
description: 7-digit EVA number of arrival station
type: string
example: 8103000
date:
description: journey date (DDMMYYYY)
type: string
example: 23062023
time:
description: journey time (HH:mm,24h format)
type: string
example: 13:37
limit:
description: maximum number of results contained in property 'results'
type: number
example: 6
results:
$ref: '#/components/schemas/ConnectionResult'
ConnectionResult:
description: contains schedule information for specific train connection
type: object
properties:
train:
description: train type and number, separated by a space
type: string
example: NJ 469
duration:
description: duration in milliseconds (ms)
type: number
example: 54900000
duration_fmt:
description: localized formatted duration
type: string
example: '15 Std 15 Min '
from:
$ref: '#/components/schemas/ConnectionResultDetails'
to:
$ref: '#/components/schemas/ConnectionResultDetails'
ConnectionResultDetails:
description: contains detailed information about departure or arrival station of connection
type: object
properties:
eva:
description: 7-digit EVA number of station
type: string
example: 8103000
number:
description: 7-digit EVA number of station
type: string
example: 8103000
name:
description: station name
type: string
example: Wien Hbf
lon:
description: longitude coordinate
type: number
example: 16.377113
lat:
description: latitude coordinate
type: number
example: 48.185101
arr_dt:
description: arrival time as UNIX timestamp in milliseconds
type: integer
example: 1687767180000
arr_date:
description: localized formatted arrival date
type: string
example: Mo, 26. Juni. 2023
arr_time:
description: arrival time (HH:mm, 24h format)
type: string
example: 10:13
arr_fmt:
description: localized formatted arrival date-time
type: string
example: Mo, 26. Juni. 2023 10:13
dep_dt:
description: departure time as UNIX timestamp in milliseconds
type: integer
example: 1687767180000
dep_date:
description: localized formatted departure date
type: string
example: Mo, 26. Juni. 2023
dep_time:
description: departure time (HH:mm, 24h format)
type: string
example: 10:13
dep_fmt:
description: localized formatted departure date-time
type: string
example: Mo, 26. Juni. 2023 10:13
pickup_type:
description: passengers board the train at this station (0 = true, 1 = false)
type: integer
minimum: 0
maximum: 1
example: 1
drop_off_type:
description: passengers get off the train at this station (0 = true, 1 = false)
type: integer
minimum: 0
maximum: 1
example: 0
Coordinates:
description: latitude and longitude
type: array
items:
type: number
format: double
maxItems: 2
example:
- 48.185103
- 16.377114
CountryList:
description: List of country details
type: array
items:
$ref: '#/components/schemas/Country'
Country:
description: Contains detailed country information
type: object
properties:
iso:
description: 2-letter UIC country code
type: string
example: de
eva:
description: 2-digit UIC country code
type: string
example: 80
name:
$ref: '#/components/schemas/CountryNames'
CountryNames:
description: object holding localized country names
type: object
properties:
de:
description: German country name
type: string
example: Deutschland
it:
description: Italian country name
type: string
example: Germania
int:
description: international country name
type: string
example: Germany
ErrorResponse:
description: Holds error details
type: object
properties:
message:
description: Error message
type: string
example: Bad Request
_links:
description: relevant links
type: object
properties:
self:
type: object
properties:
href:
description: relative URL
type: string
example: /countries/to/country/0
templated:
type: boolean
example: false
_embedded:
description: embedded objects
type: object
properties:
errors:
description: embedded errors
type: array
items:
type: object
properties:
message:
description: error message
type: string
example: 'toCountry: Invalid country code'
_links:
description: links related to the error
type: object
example: { }
_embedded:
description: embedded object
type: object
example: { }
InitRequest:
description: JSON object specifying language with which to initialize homepage
type: object
properties:
lang:
description: requested language
type: string
enum: [ de, en, it, nl, fr ]
example: de
InitResponse:
description: JSON object containing base URLs and i18n data for requested language
type: object
properties:
publicId:
description: Client ID (?)
type: string
example: 2a05e170371f42f18a69737598cd1b0a
token:
description: JWT token containing a publicId used for querying offers
type: string
example: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MDUxNzg1OTEsInB1YmxpY0lkIjoiMDI3ZjQ2NzBjN2ViNGNmNzkzZDUxZjY5ODIzNTM3MDUifQ.dLYVnof-vbdlDjIZ0Mwzy9shAAwXRj3nC1dkc2hY1Ow
ticketUrl:
description: URL of personal ticket page
type: string
example: https://www.nightjet.com/de/mein-ticket/#/ticket?t=
bookingUrl:
description: URL of booking page
type: string
example: https://www.nightjet.com/de/ticket-buchen/#/home
i18nData:
description: i18n data for all available languages (TODO add object properties)
type: object
enabledPaymentMethods:
description: enabled payment methods (possibly incomplete)
type: string
enum: [ CREDIT_CARD, PAYPAL, EPS ]
example: PAYPAL
useAgbCheckbox:
description: TODO
type: boolean
example: true
ervEnabled:
description: TODO
type: boolean
example: false
magnoliaBaseUrl:
description: TODO
type: string
example: https://www.nightjet.com
maxBookableDate:
description: end of current booking period
type: string
format: date
example: 2024-04-10
ObjectsEntry:
description: passenger details used for offer search
type: object
properties:
birthDate:
description: birth date of passenger; default to current date minus 30 years
type: string
format: date
example: 1993-10-13
cards:
description: specified discount cards TODO add entries
type: array
items:
type: number
example: [ 127 ]
gender:
description: gender of passenger; defaults to "male"
type: string
enum: [ male, female, diverse ]
example: male
type:
description: passenger type; defaults to "person" TODO finalize enum
type: string
enum: [ person, challenged, dog ]
example: person
OfferDetails:
description: TODO JSON object holding detail information about price, class, validity, etc. of current offer
type: object
OfferFilter:
description: search filter for offer
type: object
properties:
njTrain:
description: train type and number, separated with a space
type: string
example: NJ 40491
njDeparture:
description: departure time as UNIX timestamp in milliseconds
type: number
example: 1697221440000
njRoute:
description: list of stations to be passed along the route
type: array
items:
$ref: '#/components/schemas/RouteEntry'
njProduct:
description: official ticket title
type: string
example: ARES Sparschiene Nachtverkehr
# njCompartment: this.product.compartment
privateVariationCount:
description: TODO
type: object
nullable: true
example: null
OfferRequest:
description: JSON object containing search parameters
type: object
properties:
njFrom:
description: 7-digit EVA number of departure station of night train
type: number
example: 8002549
njArr:
description: |-
arrival time as UNIX timestamp in milliseconds;
only used if connection leading up to night train is included in booking
type: number
example: 1697307840000
njDep:
description: departure time as UNIX timestamp in milliseconds
type: number
example: 1697307840000
njTo:
description: 7-digit EVA number of arrival station of night train
type: number
example: 8100099
finalFrom:
description: |-
7-digit EVA number of departure station of entire journey;
only used if connection leading up to night train is included in booking
type: number
nullable: true
example: 8000199
finalTo:
description: |-
7-digit EVA number of arrival station of entire journey;
only used if connection following night train is included in booking
type: number
nullable: true
example: 5696001
maxChanges:
description: maximum number of changes between trains
type: number
example: 0
filter:
$ref: '#/components/schemas/OfferFilter'
objects:
description: passenger list TODO add more details regarding possible entries
type: array
items:
$ref: '#/components/schemas/ObjectsEntry'
relations:
description: list of special relations between passengers
type: array
items:
$ref: '#/components/schemas/Relation'
lang:
description: requested language
type: string
enum: [ de, en, it, nl, fr ]
example: de
OfferResponse:
description: JSON object containing offers
type: object