aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0e45485..72fa1a3 100644
--- a/README.md
+++ b/README.md
@@ -19,8 +19,9 @@
- Same as GET `/user/by_name/`
- POST `/user/register`
- Request
- - JSON `{"name":"NAME", "password": "PASSWORD", "id": "ID"}`
+ - JSON `{"name":"NAME", "password": "PASSWORD", "id": "ID", "key": "REGISTRATION KEY"}`
- ID is optional
+ - A new server with a new database has one key "ADMIN" which creates an admin user
- Response
- 201 Created
- JSON `{"name":"NAME", "id": "ID"}`
@@ -31,6 +32,7 @@
- JSON `"No available UID left"`
- JSON `"UID length is incorrect"`
- JSON `"UID String is not valid"`
+ - JSON `"Invalid key"`
- POST `/user/get`
- Request
- JSON `{"id": "ID", "session": "SESSION_KEY"}`