From 604778f4b065d8fa3ea7271f75b7f735f153b110 Mon Sep 17 00:00:00 2001 From: 2000-Trek Date: Wed, 19 Jul 2023 20:33:26 +0200 Subject: [PATCH] Text --- templates/documentation.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/templates/documentation.html b/templates/documentation.html index aa2722e..0777b0b 100644 --- a/templates/documentation.html +++ b/templates/documentation.html @@ -11,26 +11,26 @@

index page | user and tag list

Documentation

-

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

-

Response: - {"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}"} or - {"mode":"balance", "username":"{username}", "balance":"{balance}"} -

+

 

API:

-

Nobody wants to know how the API works

+

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

+

Response: + {"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}"} or + {"mode":"balance", "username":"{username}", "balance":"{balance}"} +

Error Codes:

170: Tag already exists

054: Tag does not exists