diff options
author | curly <curly@infernal.garden> | 2024-07-17 15:56:33 -0600 |
---|---|---|
committer | curly <curly@infernal.garden> | 2024-07-17 15:56:33 -0600 |
commit | 2d6f29228c3379debcc9f6395a50e2f2f6a1910e (patch) | |
tree | ccfe4cf08f61b8e9d603463363bca89375ccb7a9 /README.md | |
parent | d000e75ab0c20b266e90deec437e02329210db11 (diff) | |
download | poko_server-2d6f29228c3379debcc9f6395a50e2f2f6a1910e.tar.gz poko_server-2d6f29228c3379debcc9f6395a50e2f2f6a1910e.tar.bz2 poko_server-2d6f29228c3379debcc9f6395a50e2f2f6a1910e.zip |
registration keys
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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"}` |