Skip to content

Commit

Permalink
add timezones to those stations
Browse files Browse the repository at this point in the history
  • Loading branch information
philsturgeon committed Feb 2, 2024
1 parent b3f8dd3 commit 6dcb4ac
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
11 changes: 11 additions & 0 deletions components/schemas/Station.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
type: object
required:
- id
- name
- address
- country_code
properties:
id:
type: string
Expand Down Expand Up @@ -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
7 changes: 5 additions & 2 deletions paths/stations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit 6dcb4ac

Please sign in to comment.