-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdb-ice-portal-api-specification.yaml
55 lines (52 loc) · 1.44 KB
/
db-ice-portal-api-specification.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
swagger: "2.0"
info:
# version of the API:
version: 1.0.0
title: Deutsche Bahn ICE Portal API
description: API of the on-board portal of the ICE trains of Deutsche Bahn (http://ice.portal1).
termsOfService: 'http://data.deutschebahn.com/apis/iceportal/'
contact:
name: DB Open Data
email: [email protected]
schemes:
- http
host: ice.portal1
basePath: /jetty/api/v1
produces:
- application/json
paths:
/status:
get:
summary: Train Status
description: Returns train status including speed and position
responses:
200:
description: A single status object.
schema:
$ref: '#/definitions/status'
definitions:
status:
type: object
properties:
connection:
type: boolean
description: Connection status, e.g. true
servicelevel:
type: string
description: Service level status, e.g. "SERVICE"
speed:
type: number
format: double
description: Train speed in kilometer per hour, e.g. 185.8000030517578
longitude:
type: number
format: double
description: Longitude in WGS84 decimal notation, e.g. 10.924448
latitude:
type: number
format: double
description: Latitude in WGS84 decimal notation, e.g. 52.432009
serverTime:
type: integer
format: int64
description: Server time as unix time (UTC), e.g. 1445351850874