libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 35b3bee3887597d3bd99ff885826fb27891d2988
parent 2d3ac18c5cffe98e2ee462f38254f799a2f6e39f
Author: MS <ms@taler.net>
Date:   Thu, 12 Nov 2020 16:23:21 +0100

extend /config API

Diffstat:
Mcli/libeufin-cli | 5++---
Mnexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt | 7++++++-
2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/cli/libeufin-cli b/cli/libeufin-cli @@ -187,9 +187,8 @@ def import_bank_account(obj, connection_name, offered_account_id, nexus_bank_acc ), auth = auth.HTTPBasicAuth(obj.username, obj.password) ) - except Exception as ee: - print(ee) - print("Could not reach nexus at " + url) + except Exception as e: + print(f"Could not reach nexus at {url}: {e}") return print(resp.content.decode("utf-8")) diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/server/NexusServer.kt @@ -281,7 +281,12 @@ fun serverMain(dbName: String, host: String) { routing { get("/config") { call.respond( - object {val version = "0.0.0"; val currency = "EUR"} + object { + val version = "0.0.0" + val currency = "EUR" + val databaseType = "sqlite" + val databaseName = dbName + } ) return@get }