From caef475e729ebcd72cbe4270158db0c262577339 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 5 Jul 2023 22:42:58 +0200 Subject: [PATCH] api in schoen --- templates/documentation.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/documentation.html b/templates/documentation.html index d80a895..e3e026a 100644 --- a/templates/documentation.html +++ b/templates/documentation.html @@ -13,16 +13,18 @@

Documentation

http://matekasse.server.c3h/api/tag_id?={tag_id}

Response: - {"mode":"error" "error":"{error}"} - {"mode":"message","username":"{username}","message":"{message}"} + {"mode":"error" "error":"{error}"} or + {"mode":"message","username":"{username}","message":"{message}"} or {"mode":"balance", "username":"{username}", "balance":"{balance}"}



http://matekasse.server.c3h/api/change?id={user_id}?change={change}

If change = None the change will be 1 +

+

Response: - {"mode":"error" "error":"{error}"} + {"mode":"error" "error":"{error}"} or {"mode":"balance", "username":"{username}", "balance":"{balance}"}