From 2d6f29228c3379debcc9f6395a50e2f2f6a1910e Mon Sep 17 00:00:00 2001 From: curly Date: Wed, 17 Jul 2024 15:56:33 -0600 Subject: registration keys --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'README.md') 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"}` -- cgit v1.2.3