matekasse/templates/documentation.html

45 lines
1.5 KiB
HTML
Raw Normal View History

2023-06-21 18:08:31 +00:00
<html>
<head>
<title>Documentation</title>
<link rel="stylesheet" type="text/css" href="documentation.css">
<link rel="shortcut icon" type="Logo/png" href="ccc_logo.png"/>
</head>
<body>
<div id="Infos">
<p> <a href="/">index page</a> | <a href="/list">user and tag list</a></p>
</div>
2023-06-21 18:30:38 +00:00
<h1 class="header"> <u>Documentation</u> </h1>
2023-07-05 19:17:36 +00:00
<p>http://matekasse.server.c3h/api/tag_id?={tag_id}</p>
2023-07-05 20:41:40 +00:00
<p>Response:
2023-07-05 20:42:58 +00:00
{"mode":"error" "error":"{error}"} or
{"mode":"message","username":"{username}","message":"{message}"} or
2023-07-05 20:41:40 +00:00
{"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
2023-07-05 20:42:58 +00:00
</p>
<p>
2023-07-05 20:41:40 +00:00
Response:
2023-07-05 20:42:58 +00:00
{"mode":"error" "error":"{error}"} or
2023-07-05 20:41:40 +00:00
{"mode":"balance", "username":"{username}", "balance":"{balance}"}
</p>
2023-06-21 18:16:19 +00:00
<p>&nbsp;</p>
<div id="text">
2023-06-21 18:35:24 +00:00
<h2>API:</h2>
2023-06-21 20:21:45 +00:00
<p>Nobody wants to know how the API works</p>
2023-06-21 18:35:24 +00:00
<h2>Error Codes:</h2>
2023-06-21 19:33:23 +00:00
<p>170: Tag already exists</p>
<p>054: Tag does not exists</p>
<p>757: Usere already exists</p>
<p>043: User does not exists</p>
<p>352: Timeout</p>
<p>095: Input is not a Number</p>
2023-06-21 19:40:11 +00:00
<P>418: I'm a teapot</P>
2023-06-21 18:08:31 +00:00
</div>
</body>
</html>