taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit 5d1aa42f0a6b48b6e1c2ac8cbefeb3e0b99c1fa2
parent 0e650e78865fef95adc61021dabce4f294c83ad4
Author: Florian Dold <florian.dold@gmail.com>
Date:   Mon, 17 Feb 2020 20:49:57 +0100

registration API

Diffstat:
Mcore/api-bank-access.rst | 37++++++++++++++++++++++++++++++++++---
1 file changed, 34 insertions(+), 3 deletions(-)

diff --git 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