index page | user and tag list

https://hannover.ccc.de/gitlab/anton/matekasse

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

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