aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index 72fa1a3..f50493e 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@
- JSON `{"id": "ID", "session": "SESSION_KEY"}`
- Response
- 200 Ok
- - JSON `{"name": "NAME", "id": "ID", tokovec: [{"color": "COLOR", "amount": 2}, ..]}`
+ - JSON `{"name": "NAME", "id": "ID", is_admin: bool, tokovec: [{"color": "COLOR", "amount": 2}, ..]}`
- 404 Not Found
- JSON `"Not Found"`
- JSON `"Not Authenticated"`
@@ -103,4 +103,11 @@
- JSON `{"id": "ID", "session": "SESSION_KEY", "name": "USERNAME"}`
- Response
- 200 Ok
- - 500 Internal Server Error` \ No newline at end of file
+ - 500 Internal Server Error
+- POST `/admin/regkey/new`
+ - Request
+ - JSON `{"id": "ID", "session": "SESSION_KEY", "key": "REGISTRATION_KEY"}`
+ - Response
+ - 200 Ok
+ - 500 Internal Server Error
+ - JSON `"Not an admin"` \ No newline at end of file