aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorcurly <curly@infernal.garden>2024-07-17 15:56:33 -0600
committercurly <curly@infernal.garden>2024-07-17 15:56:33 -0600
commit2d6f29228c3379debcc9f6395a50e2f2f6a1910e (patch)
treeccfe4cf08f61b8e9d603463363bca89375ccb7a9 /README.md
parentd000e75ab0c20b266e90deec437e02329210db11 (diff)
downloadpoko_server-2d6f29228c3379debcc9f6395a50e2f2f6a1910e.tar.gz
poko_server-2d6f29228c3379debcc9f6395a50e2f2f6a1910e.tar.bz2
poko_server-2d6f29228c3379debcc9f6395a50e2f2f6a1910e.zip
registration keys
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"}`