diff --git a/components/schemas/Station.yaml b/components/schemas/Station.yaml index 24f8488..50b67d1 100644 --- a/components/schemas/Station.yaml +++ b/components/schemas/Station.yaml @@ -1,4 +1,9 @@ type: object +required: + - id + - name + - address + - country_code properties: id: type: string @@ -26,3 +31,9 @@ properties: examples: - DE - FR + timezone: + type: string + description: The timezone of the station in the IANA Time Zone Database format + examples: + - Europe/Berlin + - Europe/Paris diff --git a/paths/stations.yaml b/paths/stations.yaml index 71f37e6..074bc22 100644 --- a/paths/stations.yaml +++ b/paths/stations.yaml @@ -25,13 +25,16 @@ get: name: Berlin Hauptbahnhof address: Invalidenstraße 10557 Berlin, Germany country_code: DE + timezone: Europe/Berlin - id: b2e783e1-c824-4d63-b37a-d8d698862f1d name: Paris Gare du Nord address: 18 Rue de Dunkerque 75010 Paris, France country_code: FR + timezone: Europe/Paris links: - self: https://api.example.com/stations - next: https://api.example.com/stations?page=2 + self: https://api.example.com/stations&page=2 + next: https://api.example.com/stations?page=3 + prev: https://api.example.com/stations?page=1 '400': $ref: ../components/responses/BadRequest.yaml '401':