From 5d1aa42f0a6b48b6e1c2ac8cbefeb3e0b99c1fa2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 17 Feb 2020 20:49:57 +0100 Subject: registration API --- core/api-bank-access.rst | 37 ++++++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) (limited to 'core/api-bank-access.rst') 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 -- cgit v1.2.3