From 11ba5c3d7e039c3c092e45fdd55c0c6a9e144842 Mon Sep 17 00:00:00 2001 From: Curly Bryce Date: Wed, 3 Jul 2024 19:50:40 -0600 Subject: transfers --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'README.md') 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 -- cgit v1.2.3