forked from bton/matekasse
Text
This commit is contained in:
parent
7458f0be35
commit
604778f4b0
1 changed files with 17 additions and 17 deletions
|
@ -11,26 +11,26 @@
|
||||||
<p> <a href="/">index page</a> | <a href="/list">user and tag list</a></p>
|
<p> <a href="/">index page</a> | <a href="/list">user and tag list</a></p>
|
||||||
</div>
|
</div>
|
||||||
<h1 class="header"> <u>Documentation</u> </h1>
|
<h1 class="header"> <u>Documentation</u> </h1>
|
||||||
<p>http://matekasse.server.c3h/api/tag_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>
|
|
||||||
If change = None the change will be 1
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Response:
|
|
||||||
{"mode":"error" "error":"{error}"} or
|
|
||||||
{"mode":"balance", "username":"{username}", "balance":"{balance}"}
|
|
||||||
</p>
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<div id="text">
|
<div id="text">
|
||||||
<h2>API:</h2>
|
<h2>API:</h2>
|
||||||
<p>Nobody wants to know how the API works</p>
|
<p>http://matekasse.server.c3h/api/tag_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>
|
||||||
|
If change = None the change will be 1
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Response:
|
||||||
|
{"mode":"error" "error":"{error}"} or
|
||||||
|
{"mode":"balance", "username":"{username}", "balance":"{balance}"}
|
||||||
|
</p>
|
||||||
<h2>Error Codes:</h2>
|
<h2>Error Codes:</h2>
|
||||||
<p>170: Tag already exists</p>
|
<p>170: Tag already exists</p>
|
||||||
<p>054: Tag does not exists</p>
|
<p>054: Tag does not exists</p>
|
||||||
|
|
Loading…
Reference in a new issue