From 9eaeb6d523f9dccab792802c2cdb0c6735f3ed5d Mon Sep 17 00:00:00 2001
From: Daniel Friesel
Date: Fri, 27 Sep 2013 22:33:28 +0200
Subject: document all json fields
---
cgi/templates/main.html.ep | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
(limited to 'cgi/templates')
diff --git a/cgi/templates/main.html.ep b/cgi/templates/main.html.ep
index e042e4c..7a8c38f 100644
--- a/cgi/templates/main.html.ep
+++ b/cgi/templates/main.html.ep
@@ -75,29 +75,28 @@ height="<%= $height * 5 %>" width="<%= $width * 5 %>">
<%= $city %> <%= $stop %>
+Data is cached for 1 minute: JSON format:
+
+- error: err string if an error occured, otherwise null
+- preformatted: strings used by the PNG / HTML frontend
+- raw:
% if (param('backend') and param('backend') eq 'db') {
-The raw data consists of serialized
+serialized
Travel::Status::DE::DeutscheBahn-objects, see the
::Result
-documentation.
+documentation
% }
% else {
-The raw data consists of serialized
+serialized
Travel::Status::DE::VRR-objects, see the
::Result
and
::Line
-documentation.
+documentation
% }
-
-
-Notes:
-
-- data is cached for 1 minute
-- preformatted contains the string used by the PNG / HTML frontend
-- if an error occured, the error field is non-null
+
% }
--
cgit v1.2.3