diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-02 11:40:44 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-02 11:40:44 +0100 |
commit | 915542e69c5a481b8885661171880446d4ef009d (patch) | |
tree | cf05a85359ee9074ec81ba5791c399ee3749853d /src/exchange/taler-exchange-httpd_aml-decision.h | |
parent | f8ff9c996f2fbdde9110b473bee39ea173d2b40f (diff) |
first draft of implementation of GET AML decisions endpoint
Diffstat (limited to 'src/exchange/taler-exchange-httpd_aml-decision.h')
-rw-r--r-- | src/exchange/taler-exchange-httpd_aml-decision.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/exchange/taler-exchange-httpd_aml-decision.h b/src/exchange/taler-exchange-httpd_aml-decision.h index 8dd3bb3f..e31cfdfa 100644 --- a/src/exchange/taler-exchange-httpd_aml-decision.h +++ b/src/exchange/taler-exchange-httpd_aml-decision.h @@ -26,7 +26,7 @@ /** - * Handle an "/aml/$OFFICER_PUB/decision" request. Parses the decision + * Handle a POST "/aml/$OFFICER_PUB/decision" request. Parses the decision * details, checks the signatures and if appropriately authorized executes * the decision. * @@ -42,4 +42,20 @@ TEH_handler_post_aml_decision ( const json_t *root); +/** + * Handle a GET "/aml/$OFFICER_PUB/decisions" request. Parses the request + * details, checks the signatures and if appropriately authorized returns + * the matching decisions. + * + * @param rc request context + * @param officer_pub public key of the AML officer who made the request + * @param args GET arguments (should be none) + * @return MHD result code + */ +MHD_RESULT +TEH_handler_aml_decisions_get ( + struct TEH_RequestContext *rc, + const struct TALER_AmlOfficerPublicKeyP *officer_pub, + const char *const args[]); + #endif |