1
0
Fork 0
forked from bton/matekasse
matekasse/Website/templates/documentation.html

45 lines
1.6 KiB
HTML
Raw Normal View History

2024-02-21 21:02:07 +00:00
{% extends "base.html" %}
{% block title %}
Documentation
{% endblock %}
{% block customscript %}
<link rel="stylesheet" type="text/css" href="documentation.css">
{% endblock %}
{% block content %}
<h1 class="header"> <u>Documentation</u> </h1>
<p>&nbsp;</p>
<div id="text">
<h2>API:</h2>
2023-12-01 22:23:11 +00:00
<p>http://matekasse.server.c3h/api/tag_id</p>
2024-02-16 22:11:12 +00:00
<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>
2023-12-02 17:14:34 +00:00
<p>http://matekasse.server.c3h/api/balance</p>
2024-02-16 22:11:12 +00:00
<p>Post method {"id":user_id, "change":change}</p>
<p>
If change = None or NaN the change will be -1
</p>
2024-02-20 16:33:56 +00:00
<p>Get method ?id=user_id</p>
<p>
Response:
{"mode":"error" "error":"{error}"} or
{"mode":"balance", "username":"{username}", "balance":"{balance}"}
</p>
<br></br>
<h2>Error Codes:</h2>
<p>170: Tag already in use</p>
<p>054: Tag does not exists</p>
<p>757: User already exists</p>
<p>043: User does not exists</p>
<p>352: Timeout</p>
<p>095: Input is not a Number</p>
2024-02-16 18:54:32 +00:00
<p>638: Wrong Input</p>
<P>418: I'm a teapot</P>
</div>
2024-02-21 21:02:07 +00:00
{% endblock %}