commit 0ec883104a3908049763c25c8b3873d137f65a43
parent 12a5498a6e749e24f155a3dcda22ec0855eeb193
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 4 Feb 2020 21:45:32 +0100
specify /config API for bank (#6066)
Diffstat:
1 file changed, 29 insertions(+), 3 deletions(-)
diff --git a/core/api-bank.rst b/core/api-bank.rst
@@ -1,7 +1,7 @@
..
This file is part of GNU TALER.
- Copyright (C) 2014, 2015, 2016, 2017 Taler Systems SA
+ Copyright (C) 2014-2020 Taler Systems SA
TALER is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
@@ -26,6 +26,34 @@ to tightly integrate with GNU Taler.
.. contents:: Table of Contents
+.. http:get:: /config
+
+ Get a configuration information about the bank.
+
+ **Request:**
+
+ **Response:**
+
+ :status 200 OK:
+ The exchange responds with a `BankVersion` object. This request should
+ virtually always be successful.
+
+ **Details:**
+
+ .. ts:def:: BankVersion
+
+ interface BankVersion {
+ // libtool-style representation of the Bank protocol version, see
+ // https://www.gnu.org/software/libtool/manual/html_node/Versioning.html#Versioning
+ // The format is "current:revision:age".
+ version: string;
+
+ // currency used by this bank
+ currency: string;
+
+ }
+
+
-----------
Withdrawing
-----------
@@ -145,5 +173,3 @@ of the wallet's integration tests.
.. http:post:: ${BANK_API_BASE_URL}/testing/withdraw
.. http:post:: ${BANK_API_BASE_URL}/testing/withdraw-uri
-
-