summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpriscilla <priscilla.huang@efrei.net>2022-11-23 09:35:36 -0500
committerpriscilla <priscilla.huang@efrei.net>2022-11-23 09:35:36 -0500
commit699b38cc967f1cb87b87a0619f8215db7e298506 (patch)
tree6bdf974e92e4e99ae8b85e82377d1a263eb3325e
parent41fa5f3c3c9f147b8d20c8d8659384e93fe0f985 (diff)
downloadmerchant-699b38cc967f1cb87b87a0619f8215db7e298506.tar.gz
merchant-699b38cc967f1cb87b87a0619f8215db7e298506.tar.bz2
merchant-699b38cc967f1cb87b87a0619f8215db7e298506.zip
merchant api template
-rw-r--r--src/lib/merchant_api_delete_template.c10
-rw-r--r--src/lib/merchant_api_get_template.c10
-rw-r--r--src/lib/merchant_api_patch_template.c10
3 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/merchant_api_delete_template.c b/src/lib/merchant_api_delete_template.c
index e044c07f..5f2d8b03 100644
--- a/src/lib/merchant_api_delete_template.c
+++ b/src/lib/merchant_api_delete_template.c
@@ -16,7 +16,7 @@
*/
/**
* @file merchant_api_delete_template.c
- * @brief Implementation of the DELETE /template/$ID request of the merchant's HTTP API
+ * @brief Implementation of the DELETE /templates/$ID request of the merchant's HTTP API
* @author Christian Grothoff
*/
#include "platform.h"
@@ -32,7 +32,7 @@
/**
- * Handle for a DELETE /template/$ID operation.
+ * Handle for a DELETE /templates/$ID operation.
*/
struct TALER_MERCHANT_TemplateDeleteHandle
{
@@ -66,7 +66,7 @@ struct TALER_MERCHANT_TemplateDeleteHandle
/**
* Function called when we're done processing the
- * HTTP GET /template/$ID request.
+ * HTTP GET /templates/$ID request.
*
* @param cls the `struct TALER_MERCHANT_TemplateDeleteHandle`
* @param response_code HTTP response code, 0 on error
@@ -86,7 +86,7 @@ handle_delete_template_finished (void *cls,
tdh->job = NULL;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Got /template/$ID response with status code %u\n",
+ "Got /templates/$ID response with status code %u\n",
(unsigned int) response_code);
switch (response_code)
{
@@ -139,7 +139,7 @@ TALER_MERCHANT_template_delete (
char *path;
GNUNET_asprintf (&path,
- "private/template/%s",
+ "private/templates/%s",
template_id);
tdh->url = TALER_url_join (backend_url,
path,
diff --git a/src/lib/merchant_api_get_template.c b/src/lib/merchant_api_get_template.c
index 01e4a91e..4ad2d8d0 100644
--- a/src/lib/merchant_api_get_template.c
+++ b/src/lib/merchant_api_get_template.c
@@ -16,7 +16,7 @@
*/
/**
* @file merchant_api_get_template.c
- * @brief Implementation of the GET /template/$ID request of the merchant's HTTP API
+ * @brief Implementation of the GET /templates/$ID request of the merchant's HTTP API
* @author Christian Grothoff
*/
#include "platform.h"
@@ -32,7 +32,7 @@
/**
- * Handle for a GET /template/$ID operation.
+ * Handle for a GET /templates/$ID operation.
*/
struct TALER_MERCHANT_TemplateGetHandle
{
@@ -66,7 +66,7 @@ struct TALER_MERCHANT_TemplateGetHandle
/**
* Function called when we're done processing the
- * HTTP GET /template/$ID request.
+ * HTTP GET /templates/$ID request.
*
* @param cls the `struct TALER_MERCHANT_TemplateGetHandle`
* @param response_code HTTP response code, 0 on error
@@ -86,7 +86,7 @@ handle_get_template_finished (void *cls,
tgh->job = NULL;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Got /template/$ID response with status code %u\n",
+ "Got /templates/$ID response with status code %u\n",
(unsigned int) response_code);
switch (response_code)
{
@@ -174,7 +174,7 @@ TALER_MERCHANT_template_get (
char *path;
GNUNET_asprintf (&path,
- "private/template/%s",
+ "private/templates/%s",
template_id);
tgh->url = TALER_url_join (backend_url,
path,
diff --git a/src/lib/merchant_api_patch_template.c b/src/lib/merchant_api_patch_template.c
index ba66a94f..4cc6b0ca 100644
--- a/src/lib/merchant_api_patch_template.c
+++ b/src/lib/merchant_api_patch_template.c
@@ -18,7 +18,7 @@
*/
/**
* @file merchant_api_patch_template.c
- * @brief Implementation of the PATCH /template/$ID request
+ * @brief Implementation of the PATCH /templates/$ID request
* of the merchant's HTTP API
* @author Christian Grothoff
*/
@@ -34,7 +34,7 @@
/**
- * Handle for a PATCH /template/$ID operation.
+ * Handle for a PATCH /templates/$ID operation.
*/
struct TALER_MERCHANT_TemplatePatchHandle
{
@@ -74,7 +74,7 @@ struct TALER_MERCHANT_TemplatePatchHandle
/**
* Function called when we're done processing the
- * HTTP PATCH /template/$ID request.
+ * HTTP PATCH /templates/$ID request.
*
* @param cls the `struct TALER_MERCHANT_TemplatePatchHandle`
* @param response_code HTTP response code, 0 on error
@@ -94,7 +94,7 @@ handle_patch_template_finished (void *cls,
tph->job = NULL;
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "PATCH /template/$ID completed with response code %u\n",
+ "PATCH /templates/$ID completed with response code %u\n",
(unsigned int) response_code);
switch (response_code)
{
@@ -184,7 +184,7 @@ TALER_MERCHANT_template_patch (
char *path;
GNUNET_asprintf (&path,
- "private/template/%s",
+ "private/templates/%s",
template_id);
tph->url = TALER_url_join (backend_url,
path,