summaryrefslogtreecommitdiff
path: root/src/lib/merchant_api_patch_product.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-04-24 17:53:31 +0200
committerChristian Grothoff <christian@grothoff.org>2020-04-24 17:53:31 +0200
commitf4b19c002aa3ef8054729f7e61254232d575b7a6 (patch)
tree79e8aed1c7081470a634430b17b2660568c3e4e6 /src/lib/merchant_api_patch_product.c
parent0b57eac8f3b99941a11f11f35feac1926cd21d31 (diff)
downloadmerchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.tar.gz
merchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.tar.bz2
merchant-f4b19c002aa3ef8054729f7e61254232d575b7a6.zip
toward stesting
Diffstat (limited to 'src/lib/merchant_api_patch_product.c')
-rw-r--r--src/lib/merchant_api_patch_product.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/lib/merchant_api_patch_product.c b/src/lib/merchant_api_patch_product.c
index d90ae582..9b0aead2 100644
--- a/src/lib/merchant_api_patch_product.c
+++ b/src/lib/merchant_api_patch_product.c
@@ -155,8 +155,6 @@ handle_patch_product_finished (void *cls,
*
* @param ctx the context
* @param backend_url HTTP base URL for the backend
- * @param instance_id instance to add a product to,
- * NULL to query the default instance
* @param product_id identifier to use for the product; the product must exist,
* or the transaction will fail with a #MHD_HTTP_NOT_FOUND
* HTTP status code
@@ -184,7 +182,6 @@ struct TALER_MERCHANT_ProductPatchHandle *
TALER_MERCHANT_product_patch (
struct GNUNET_CURL_Context *ctx,
const char *backend_url,
- const char *instance_id,
const char *product_id,
const char *description,
const json_t *description_i18n,
@@ -237,15 +234,9 @@ TALER_MERCHANT_product_patch (
{
char *path;
- if (NULL == instance_id)
- GNUNET_asprintf (&path,
- "products/%s",
- product_id);
- else
- GNUNET_asprintf (&path,
- "instances/%s/products/%s",
- instance_id,
- product_id);
+ GNUNET_asprintf (&path,
+ "products/%s",
+ product_id);
pph->url = TALER_url_join (backend_url,
path,
NULL);