aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorcurly <curly@infernal.garden>2024-07-17 17:23:32 -0600
committercurly <curly@infernal.garden>2024-07-17 17:23:32 -0600
commit5c95f38610c61f43700b3e78dcb56c552d152c2b (patch)
tree8f180173da663cbaebafec70659e1c3c32b71c53 /README.md
parentd8f80c973159813a5937395a0f53c042b0c738c2 (diff)
downloadpoko_server-5c95f38610c61f43700b3e78dcb56c552d152c2b.tar.gz
poko_server-5c95f38610c61f43700b3e78dcb56c552d152c2b.tar.bz2
poko_server-5c95f38610c61f43700b3e78dcb56c552d152c2b.zip
del and list registration keys for admin
Diffstat (limited to 'README.md')
-rw-r--r--README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index f50493e..20e9412 100644
--- a/README.md
+++ b/README.md
@@ -110,4 +110,20 @@
- Response
- 200 Ok
- 500 Internal Server Error
+ - JSON `"Not an admin"`
+ - JSON `"Key already exists"`
+- POST `/admin/regkey/del`
+ - Request
+ - JSON `{"id": "ID", "session": "SESSION_KEY", "key": "REGISTRATION_KEY"}`
+ - Response
+ - 200 Ok
+ - 500 Internal Server Error
+ - JSON `"Not an admin"`
+ - JSON `"Could not find key"`
+- POST `/admin/regkey/list`
+ - Request
+ - JSON `{"id": "ID", "session": "SESSION_KEY"}`
+ - Response
+ - 200 Ok
+ - 500 Internal Server Error
- JSON `"Not an admin"` \ No newline at end of file