aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCurly Bryce <curlybryce@protonmail.com>2024-07-03 19:50:40 -0600
committerCurly Bryce <curlybryce@protonmail.com>2024-07-03 19:50:40 -0600
commit11ba5c3d7e039c3c092e45fdd55c0c6a9e144842 (patch)
tree0b9b2c737ca7791c33d2d0e5968341b3ba5bee20 /README.md
parentc06632d0dfdb19e047ae1175a46b926e6772650f (diff)
downloadpoko_server-11ba5c3d7e039c3c092e45fdd55c0c6a9e144842.tar.gz
poko_server-11ba5c3d7e039c3c092e45fdd55c0c6a9e144842.tar.bz2
poko_server-11ba5c3d7e039c3c092e45fdd55c0c6a9e144842.zip
transfers
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/README.md b/README.md
index de06e31..abb254b 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@
- JSON `[{"name": "NAME", "id": "ID"}, ...]`
- 400 Not Found
- JSON `"Not Found"`
-- GET `/user/all`
+- GET `/user/list`
- Same as GET `/user/by_name/`
- POST `/user/register`
- Request
@@ -77,4 +77,14 @@
- 200 Ok
- JSON `"Deleted"`
- 401 Unauthorized
- - JSON `"Not Authenticated"` \ No newline at end of file
+ - JSON `"Not Authenticated"`
+- POST `/transfer/out`
+ - Request
+ - JSON `{"id": "ID", "session": "SESSION_KEY", "to": "ID", "color": "COLOR", "amount": 0}`
+ - ID and SESSION_KEY are from the from account
+ - TO_ID is the account the tokens are going to
+ - amount may be 0
+ - Response
+ - 200 Ok
+ - 500 Internal Server Error
+ - JSON `"Could not complete transaction"` \ No newline at end of file