diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |