summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-01-26 10:47:51 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-01-26 10:47:51 +0100
commitc31254e996a0b2ddc03fdecdb27ab262b88911d1 (patch)
treebb60f38dae0e2bf46fb40657b064e36d3b96b32e /templates
parent1723f8c1fb52dc9830ab30421492a1b546f4e3c5 (diff)
import API: Add deprecated field, remove development check
Diffstat (limited to 'templates')
-rw-r--r--templates/api_documentation.html.ep2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/api_documentation.html.ep b/templates/api_documentation.html.ep
index 0c8c534..c20d37c 100644
--- a/templates/api_documentation.html.ep
+++ b/templates/api_documentation.html.ep
@@ -203,6 +203,7 @@
<p style="font-family: Monospace;">
{<br/>
"success" : true,<br/>
+ "deprecated" : true / false, (falls true: Diese API-Version wird irgendwann abgeschaltet, bitte auf eine neue umsteigen)<br/>
"id" : 1234, (ID der eingetragenen Zugfahrt)<br/>
"result" : { ... } (Eingetragene Daten, Datenformat nicht näher spezifiziert und beliebig variabel)<br/>
}
@@ -213,6 +214,7 @@
<p style="font-family: Monospace;">
{<br/>
"success" : false,<br/>
+ "deprecated" : true / false, (falls true: Diese API-Version wird irgendwann abgeschaltet, bitte auf eine neue umsteigen)<br/>
"error" : "Begründung"<br/>
}
</p>