{% extends "base.html" %} {% block title %} Documentation {% endblock %} {% block customscript %} {% endblock %} {% block content %}

Documentation

 

API:

http://matekasse.server.c3h/api/tag_id

Post method {"id":tag_id}

Response: {"mode":"error" "error":"{error}"} or {"mode":"message","username":"{username}","message":"{message}"} or {"mode":"balance", "username":"{username}", "balance":"{balance}"}



http://matekasse.server.c3h/api/balance

Post method {"id":user_id, "change":change}

If change = None or NaN the change will be -1

Get method ?id=user_id

Response: {"mode":"error" "error":"{error}"} or {"mode":"balance", "username":"{username}", "balance":"{balance}"}



Error Codes:

170: Tag already in use

054: Tag does not exists

757: User already exists

043: User does not exists

352: Timeout

095: Input is not a Number

638: Wrong Input

418: I'm a teapot

{% endblock %}