Documentation api to post

This commit is contained in:
2000-Trek 2023-12-01 23:23:11 +01:00
parent fda3f58cca
commit d9aff6a56a

View file

@ -16,14 +16,16 @@
<p>&nbsp;</p> <p>&nbsp;</p>
<div id="text"> <div id="text">
<h2>API:</h2> <h2>API:</h2>
<p>http://matekasse.server.c3h/api/tag_id?={tag_id}</p> <p>http://matekasse.server.c3h/api/tag_id</p>
<p>Post method "id"= tag id</p>
<p>Response: <p>Response:
{"mode":"error" "error":"{error}"} or {"mode":"error" "error":"{error}"} or
{"mode":"message","username":"{username}","message":"{message}"} or {"mode":"message","username":"{username}","message":"{message}"} or
{"mode":"balance", "username":"{username}", "balance":"{balance}"} {"mode":"balance", "username":"{username}", "balance":"{balance}"}
</p> </p>
<br></br> <br></br>
<p>http://matekasse.server.c3h/api/change?id={user_id}&?change={change}</p> <p>http://matekasse.server.c3h/api/change</p>
<p>Post method "id" = user id, "change"=change</p>
<p> <p>
If change = None or NaN the change will be -1 If change = None or NaN the change will be -1
</p> </p>