summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-30 18:28:05 +0200
committerMarcello Stanisci <marcello.stanisci@inria.fr>2017-03-30 18:28:05 +0200
commitc57e9c42118c2eda10a6d768f6dd5fdbe399a20d (patch)
tree41fb6670dcbbf124181a4306b2ad32b8ee06b970 /api
parent176115f323442102c80b3623470a757edd6b929c (diff)
downloaddocs-c57e9c42118c2eda10a6d768f6dd5fdbe399a20d.tar.gz
docs-c57e9c42118c2eda10a6d768f6dd5fdbe399a20d.tar.bz2
docs-c57e9c42118c2eda10a6d768f6dd5fdbe399a20d.zip
specing out /admin/add/incoming from the bank
Diffstat (limited to 'api')
-rw-r--r--api/api-bank.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/api/api-bank.rst b/api/api-bank.rst
index a4382a23..1d5e2f12 100644
--- a/api/api-bank.rst
+++ b/api/api-bank.rst
@@ -25,8 +25,9 @@ needs to give real money to the merchant.
Administrative API
------------------
-This is `local` API, meant to make the bank communicate with trusted entities,
-namely exchanges.
+This API allows one user to send money to another user, withing the same "test"
+bank. The user calling it has to authenticate by including his credentials in the
+request.
.. _bank-deposit:
.. http:post:: /admin/add/incoming
@@ -46,6 +47,12 @@ namely exchanges.
interface BankDepositRequest {
+ // The username of the user calling this API.
+ username: string;
+
+ // Password of the user calling this API.
+ password: string;
+
// JSON 'amount' object. The amount the caller wants to transfer
// to the recipient's count
amount: Amount;