diff options
Diffstat (limited to 'core/api-bank-access.rst')
-rw-r--r-- | core/api-bank-access.rst | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/core/api-bank-access.rst b/core/api-bank-access.rst index 757a2e3c..79d866c4 100644 --- a/core/api-bank-access.rst +++ b/core/api-bank-access.rst @@ -16,9 +16,9 @@ @author Florian Dold -============================= -Taler Bank Account Access API -============================= +===================== +Taler Bank Access API +===================== This chapter describes the API that the GNU Taler demonstrator bank offers to access accounts. @@ -26,6 +26,11 @@ This API differes from the "Bank Integration API" in that it provides advanced A to enabling wallets to withdraw with an better user experience ("tight integration"). +------------------------ +Accounts and Withdrawals +------------------------ + + .. http:get:: ${BANK_API_BASE_URL}/accounts/${account_name}/balance Request the current balance of an account. @@ -141,3 +146,29 @@ to enabling wallets to withdraw with an better user experience ("tight integrati :status 409 Conflict: The reserve operation has been aborted previously and can't be confirmed. + + +---------------------- +Registration (Testing) +---------------------- + + +.. http:POST:: ${BANK_API_BASE_URL}/testing/register + + Create a new bank account. This endpoint should be disabled for most deployments, but is useful + for automated testing / integration tests. + + **Request** + + .. ts:def:: BankRegistrationRequest + + interface BankRegistrationRequest { + username: string; + + password: string; + } + + + **Response** + + :status 200 OK: Registration was successful |