summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-02-05 11:55:04 +0100
committerChristian Grothoff <christian@grothoff.org>2024-02-05 11:55:04 +0100
commitd4f353eabc520dc95fa5c71317af6947783e9676 (patch)
treefe0b0776c47ca4b81d07ac95fcec3a9f3b9699d0
parentdff30ed39f0bfc713b2e59d6b3bd54c4f1be9165 (diff)
downloadanastasis-d4f353eabc520dc95fa5c71317af6947783e9676.tar.gz
anastasis-d4f353eabc520dc95fa5c71317af6947783e9676.tar.bz2
anastasis-d4f353eabc520dc95fa5c71317af6947783e9676.zip
return 'implementation' field in /config responses
-rw-r--r--doc/sphinx/rest.rst4
-rw-r--r--src/backend/anastasis-httpd_config.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/doc/sphinx/rest.rst b/doc/sphinx/rest.rst
index a9f78a9..79c1355 100644
--- a/doc/sphinx/rest.rst
+++ b/doc/sphinx/rest.rst
@@ -35,6 +35,7 @@ Receiving Configuration
.. http:get:: /config
Obtain the configuration details of the escrow provider.
+ This specification corresponds to ``current`` protocol being version **0**.
**Response:**
@@ -54,6 +55,9 @@ Receiving Configuration
// The format is "current:revision:age".
version: string;
+ // URN of the implementation (needed to interpret 'revision' in version).
+ // @since v0, may become mandatory in the future.
+ implementation?: string;
// Currency in which this provider processes payments.
currency: string;
diff --git a/src/backend/anastasis-httpd_config.c b/src/backend/anastasis-httpd_config.c
index 015fd01..677c5dc 100644
--- a/src/backend/anastasis-httpd_config.c
+++ b/src/backend/anastasis-httpd_config.c
@@ -103,7 +103,9 @@ AH_handler_config (struct AH_RequestHandler *rh,
GNUNET_JSON_pack_string ("name",
"anastasis"),
GNUNET_JSON_pack_string ("version",
- "0:0:0"),
+ "0:1:0"),
+ GNUNET_JSON_pack_string ("implementation",
+ "urn:net:taler:specs:anastasis:c-reference"),
GNUNET_JSON_pack_string ("business_name",
AH_business_name),
GNUNET_JSON_pack_array_steal ("methods",