diff options
author | Curly Bryce <curlybryce@protonmail.com> | 2024-07-03 19:50:40 -0600 |
---|---|---|
committer | Curly Bryce <curlybryce@protonmail.com> | 2024-07-03 19:50:40 -0600 |
commit | 11ba5c3d7e039c3c092e45fdd55c0c6a9e144842 (patch) | |
tree | 0b9b2c737ca7791c33d2d0e5968341b3ba5bee20 /README.md | |
parent | c06632d0dfdb19e047ae1175a46b926e6772650f (diff) | |
download | poko_server-11ba5c3d7e039c3c092e45fdd55c0c6a9e144842.tar.gz poko_server-11ba5c3d7e039c3c092e45fdd55c0c6a9e144842.tar.bz2 poko_server-11ba5c3d7e039c3c092e45fdd55c0c6a9e144842.zip |
transfers
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 |