diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-12-21 14:49:06 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-12-21 14:49:06 +0100 |
commit | 8285eeaf7d46a2b50e169df2690ae2e990e2c517 (patch) | |
tree | 4ff1a3007ae6e3b6c1053f0bb02dccfdb8df6d12 /README.md | |
parent | 6a7fd1692a9a94e6209b0a34b9a6552ee4d22b4e (diff) |
use objects in wagon list
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 50 |
1 files changed, 25 insertions, 25 deletions
@@ -27,7 +27,8 @@ Graphical cycle maps are available on This README documents **version 0** of the format. It is not stable yet; data layout or semantic changes may not be reflected in the version number. -Starting with v1, schema and semantics will be stable. +Starting with v1, schema and semantics will be stable. See also the +[OpenAPI spec](https://lib.finalrewind.org/dbdb/db_zugbildung_v0.yml). ```js { @@ -248,30 +249,29 @@ expressions and may miss rarely used wagon types. ```js { "wagons": [ - [ - "DBpbzfa", - "1" - ], - [ - "DBpza", - "2" - ], - [ - "DBpza", - "3" - ], - [ - "DBpza", - "4" - ], - [ - "DApza", - "5" - ], - [ - "147.5", - null - ] + { + "type": "DBpbzfa", + "number": 1 + }, + { + "type": "DBpza", + "number": 2 + }, + { + "type": "DBpza", + "number": 3 + }, + { + "type": "DBpza", + "number": 4 + }, + { + "type": "DApza", + "number": 5 + }, + { + type: "147.5", + } ] } ``` |