summaryrefslogtreecommitdiff
path: root/cgi/templates/main.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-09-27 22:33:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-09-27 22:33:28 +0200
commit9eaeb6d523f9dccab792802c2cdb0c6735f3ed5d (patch)
tree6f325d7a93e15a570d2e1199df46e105945ca826 /cgi/templates/main.html.ep
parent6d53db05f41e4180acc60bc0f4cd92665b90ae89 (diff)
document all json fields0.07
Diffstat (limited to 'cgi/templates/main.html.ep')
-rw-r--r--cgi/templates/main.html.ep21
1 files changed, 10 insertions, 11 deletions
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 %>"></iframe>
<%= $city %> <%= $stop %></a>
</p>
<p>
+Data is cached for 1 minute: JSON format:
+<ul>
+<li>error: err string if an error occured, otherwise null</li>
+<li>preformatted: strings used by the PNG / HTML frontend</li>
+<li>raw:
% if (param('backend') and param('backend') eq 'db') {
-The raw data consists of serialized
+serialized
<a href="http://finalrewind.org/projects/Travel-Status-DE-DeutscheBahn/">
Travel::Status::DE::DeutscheBahn</a>-objects, see the
<a href="http://man.finalrewind.org/3/Travel-Status-DE-DeutscheBahn-Result/">::Result</a>
-documentation.
+documentation
% }
% else {
-The raw data consists of serialized
+serialized
<a href="http://finalrewind.org/projects/Travel-Status-DE-VRR/">
Travel::Status::DE::VRR</a>-objects, see the
<a href="http://man.finalrewind.org/3/Travel-Status-DE-VRR-Result/">::Result</a>
and
<a href="http://man.finalrewind.org/3/Travel-Status-DE-VRR-Line/">::Line</a>
-documentation.
+documentation
% }
-</p>
-<p>
-Notes:
-<ul>
-<li>data is cached for 1 minute</li>
-<li>preformatted contains the string used by the PNG / HTML frontend</li>
-<li>if an error occured, the error field is non-null</li>
+</li>
</ul>
</p>
% }