taler-merchant-httpd_get-fountain-info.h (1556B)
1 /* 2 This file is part of TALER 3 (C) 2026 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify 6 it under the terms of the GNU Affero General Public License as 7 published by the Free Software Foundation; either version 3, 8 or (at your option) any later version. 9 10 TALER is distributed in the hope that it will be useful, but 11 WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public 16 License along with TALER; see the file COPYING. If not, 17 see <http://www.gnu.org/licenses/> 18 */ 19 20 /** 21 * @file src/backend/taler-merchant-httpd_get-fountain-info.h 22 * @brief implementing GET /fountain/info request handling (DD 98) 23 * @author Bohdan Potuzhnyi 24 */ 25 #ifndef TALER_MERCHANT_HTTPD_GET_FOUNTAIN_INFO_H 26 #define TALER_MERCHANT_HTTPD_GET_FOUNTAIN_INFO_H 27 28 #include "taler-merchant-httpd.h" 29 30 31 /** 32 * Handle a GET "/fountain/info" request. Public endpoint, 33 * authenticated by the fountain's bearer credential in the 34 * "Authorization: Bearer $FOUNTAIN_SECRET" header. 35 * 36 * @param rh context of the handler 37 * @param connection the MHD connection to handle 38 * @param[in,out] hc context with further information about the request 39 * @return MHD result code 40 */ 41 enum MHD_Result 42 TMH_get_fountain_info (const struct TMH_RequestHandler *rh, 43 struct MHD_Connection *connection, 44 struct TMH_HandlerContext *hc); 45 46 #endif