[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] branch master updated: return 'implementation' field i
From: |
gnunet |
Subject: |
[taler-anastasis] branch master updated: return 'implementation' field in /config responses |
Date: |
Mon, 05 Feb 2024 11:55:07 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository anastasis.
The following commit(s) were added to refs/heads/master by this push:
new d4f353e return 'implementation' field in /config responses
d4f353e is described below
commit d4f353eabc520dc95fa5c71317af6947783e9676
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Feb 5 11:55:04 2024 +0100
return 'implementation' field in /config responses
---
doc/sphinx/rest.rst | 4 ++++
src/backend/anastasis-httpd_config.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
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",
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-anastasis] branch master updated: return 'implementation' field in /config responses,
gnunet <=