exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit ec8439e4bd8b3253cfe86667f771b50372d46816
parent f8f7c83cb8df30accb772ae1a4ea3fc62606a5cc
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 28 Jan 2024 19:55:22 +0100

adjust fakebank revenue-api to actually comply with the spec

Diffstat:
Msrc/bank-lib/fakebank_tbr.c | 10+++++-----
Msrc/bank-lib/fakebank_tbr_get_history.c | 4++--
Msrc/bank-lib/fakebank_tbr_get_history.h | 6+++---
3 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/bank-lib/fakebank_tbr.c b/src/bank-lib/fakebank_tbr.c @@ -50,12 +50,12 @@ TALER_FAKEBANK_tbr_main_ ( MHD_HTTP_METHOD_GET)) { if ( (0 == strcmp (url, - "/history/incoming")) && + "/history")) && (NULL != account) ) - return TALER_FAKEBANK_tbr_get_history_incoming (h, - connection, - account, - con_cls); + return TALER_FAKEBANK_tbr_get_history (h, + connection, + account, + con_cls); if (0 == strcmp (url, "/")) return TALER_FAKEBANK_tbr_get_root (h, diff --git a/src/bank-lib/fakebank_tbr_get_history.c b/src/bank-lib/fakebank_tbr_get_history.c @@ -50,7 +50,7 @@ history_cleanup (void *cls) MHD_RESULT -TALER_FAKEBANK_tbr_get_history_incoming ( +TALER_FAKEBANK_tbr_get_history ( struct TALER_FAKEBANK_Handle *h, struct MHD_Connection *connection, const char *account, @@ -72,7 +72,7 @@ TALER_FAKEBANK_tbr_get_history_incoming ( cc->ctx = hc; GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Handling /accounts/%s/taler-revenue/history/incoming request\n", + "Handling /accounts/%s/taler-revenue/history request\n", account); if (GNUNET_OK != (ret = TALER_FAKEBANK_common_parse_history_args (h, diff --git a/src/bank-lib/fakebank_tbr_get_history.h b/src/bank-lib/fakebank_tbr_get_history.h @@ -32,8 +32,8 @@ /** - * Handle incoming HTTP request for /history/incoming - * of the Anastasis API. This one can return transactions + * Handle incoming HTTP request for /history + * of the taler-revenue API. This one can return transactions * created by debits from the exchange! * * @param h the fakebank handle @@ -43,7 +43,7 @@ * @return MHD result code */ MHD_RESULT -TALER_FAKEBANK_tbr_get_history_incoming ( +TALER_FAKEBANK_tbr_get_history ( struct TALER_FAKEBANK_Handle *h, struct MHD_Connection *connection, const char *account,