From 6dcb4ac1eaa5ac2327eb144f35d1a4bba482abe0 Mon Sep 17 00:00:00 2001 From: Phil Sturgeon <67381+philsturgeon@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:26:11 +0000 Subject: [PATCH] add timezones to those stations --- components/schemas/Station.yaml | 11 +++++++++++ paths/stations.yaml | 7 +++++-- 2 files changed, 16 insertions(+), 2 deletions(-) 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':