From 68086be3a8c996486d9cbdec0b7f5e3d2dc01750 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 27 Mar 2025 21:26:42 +0100 Subject: API: Add DBRIS support --- templates/api_documentation.html.ep | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'templates/api_documentation.html.ep') diff --git a/templates/api_documentation.html.ep b/templates/api_documentation.html.ep index 4453286..099474c 100644 --- a/templates/api_documentation.html.ep +++ b/templates/api_documentation.html.ep @@ -129,12 +129,13 @@ {
"token" : "<%= $uid %>-<%= $token->{travel} // 'TOKEN' %>",
"action" : "checkin",
- "hafas" : "DB", (HAFAS-Instanz – Default: Deutsche Bahn)
+ "dbris" : "bahn.de", (DBRIS-Instanz – Default: bahn.de)
+ "hafas" : null, (HAFAS-Instanz, falls verwendet, sonste null)
"train" : {
- "journeyID" : "1|1426396|4|80|19082023",
+ "journeyID" : "2|#VN#1#ST#1742845592#PI#0#ZI#315136#TA#0#DA#270325#1S#8000080#1T#1841#LS#8006486#LT#2024#PU#80#RT#1#CA#RE#ZE#10773#ZB#RE10773#PC#3#FR#8000080#FT#1841#TO#8006486#TT#2024#",
}
- "fromStation" : 651806, (Name oder EVA-Nummer)
- "toStation" : 654645, (optional, Name oder EVA-Nummer)
+ "fromStation" : 8000080, (Name oder EVA-Nummer – bei bahn.de nur EVA-Nummer)
+ "toStation" : 8006486, (optional, Name oder EVA-Nummer – bei bahn.de nur EVA-Nummer)
"comment" : "Beliebiger Text" (optional, überschreibt vorherigen Kommentar)
}

-- cgit v1.2.3