aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 9 insertions, 6 deletions
diff --git a/README.md b/README.md
index eafa655..0e45485 100644
--- a/README.md
+++ b/README.md
@@ -74,7 +74,7 @@
- JSON `"Not Authenticated"`
- POST `/user/delete`
- Request
- - JSON `{"id": "ID", "session": "SESSION_KEY"}`
+ - JSON `{"id": "ID", "session": "SESSION_KEY", "password": "PASSWORD"}`
- Response
- 200 Ok
- JSON `"Deleted"`
@@ -90,12 +90,15 @@
- 200 Ok
- 500 Internal Server Error
- JSON `"Could not complete transaction"`
-- POST `/user/update/info`
+- POST `/user/update/password`
- Request
- - JSON `{"id": "ID", "session": "SESSION_KEY", "name": "USERNAME", "old_password": "PASSWORD", "new_password": "PASSWORD"}`
+ - JSON `{"id": "ID", "session": "SESSION_KEY", "old_password": "PASSWORD", "new_password": "PASSWORD"}`
+ - Response
+ - 200 Ok
+ - 500 Internal Server Error`
+- POST `/user/update/name`
+ - Request
+ - JSON `{"id": "ID", "session": "SESSION_KEY", "name": "USERNAME"}`
- Response
- 200 Ok
- - 401 Unauthorized
- - JSON `"Not Authenticated"`
- - 400 Bad Request
- 500 Internal Server Error` \ No newline at end of file