commit d4f353eabc520dc95fa5c71317af6947783e9676
parent dff30ed39f0bfc713b2e59d6b3bd54c4f1be9165
Author: Christian Grothoff <christian@grothoff.org>
Date: Mon, 5 Feb 2024 11:55:04 +0100
return 'implementation' field in /config responses
Diffstat:
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git 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
@@ -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",