1
0
Fork 0
forked from bton/matekasse

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>
<div id="text">
<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:
{"mode":"error" "error":"{error}"} or
{"mode":"message","username":"{username}","message":"{message}"} or
{"mode":"balance", "username":"{username}", "balance":"{balance}"}
</p>
<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>
If change = None or NaN the change will be -1
</p>