gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: Fixing GET /config response.


From: gnunet
Subject: [libeufin] branch master updated: Fixing GET /config response.
Date: Fri, 22 Sep 2023 12:02:22 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 19672ffd Fixing GET /config response.
19672ffd is described below

commit 19672ffdc52e77942e85a5d68b6795a55ea172e9
Author: MS <ms@taler.net>
AuthorDate: Fri Sep 22 11:59:39 2023 +0200

    Fixing GET /config response.
    
    Now it includes default values in the response.
---
 bank/src/main/kotlin/tech/libeufin/bank/Main.kt |  2 ++
 bank/src/test/kotlin/LibeuFinApiTest.kt         | 11 +++++++++++
 contrib/wallet-core                             |  2 +-
 3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/bank/src/main/kotlin/tech/libeufin/bank/Main.kt 
b/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
index a6ada582..6f8bcf88 100644
--- a/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
+++ b/bank/src/main/kotlin/tech/libeufin/bank/Main.kt
@@ -174,6 +174,8 @@ fun Application.corebankWebApp(db: Database) {
     install(IgnoreTrailingSlash)
     install(ContentNegotiation) {
         json(Json {
+            explicitNulls = false
+            encodeDefaults = true
             prettyPrint = true
             ignoreUnknownKeys = true
             // Registering custom parser for RelativeTime
diff --git a/bank/src/test/kotlin/LibeuFinApiTest.kt 
b/bank/src/test/kotlin/LibeuFinApiTest.kt
index 23256bd8..13ffb835 100644
--- a/bank/src/test/kotlin/LibeuFinApiTest.kt
+++ b/bank/src/test/kotlin/LibeuFinApiTest.kt
@@ -39,6 +39,17 @@ class LibeuFinApiTest {
         owningCustomerId = rowId
     )
 
+    @Test
+    fun getConfig() {
+        val db = initDb()
+        testApplication {
+            application { corebankWebApp(db) }
+            val r = client.get("/config") {
+                expectSuccess = true
+            }
+            println(r.bodyAsText())
+        }
+    }
     /**
      * Testing GET /transactions.  This test checks that the sign
      * of delta gets honored by the HTTP handler, namely that the
diff --git a/contrib/wallet-core b/contrib/wallet-core
index 9e2d95b3..c5a3cd4c 160000
--- a/contrib/wallet-core
+++ b/contrib/wallet-core
@@ -1 +1 @@
-Subproject commit 9e2d95b39723a038eb714d723ac0910a5bf596e2
+Subproject commit c5a3cd4c50676c49fa6c67cbdeb609101c38e764

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]