From d5adc5d9d23e7e8ebeb95d2179524d79b5da9255 Mon Sep 17 00:00:00 2001 From: m-timmermann Date: Mon, 18 Mar 2024 10:27:16 +0100 Subject: [PATCH] add-availabilities.issue-4041 * remove prefix --- .../java/com/meplato/store2/availabilities/Service.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/meplato/store2/availabilities/Service.java b/src/main/java/com/meplato/store2/availabilities/Service.java index 76617df..fe67519 100644 --- a/src/main/java/com/meplato/store2/availabilities/Service.java +++ b/src/main/java/com/meplato/store2/availabilities/Service.java @@ -249,7 +249,7 @@ public DeleteResponse execute() throws ServiceException { headers.put("Authorization", authorization); } - String uriTemplate = service.getBaseURL() + "/api/v2/products/{spn}/availabilities{?region,zipCode}"; + String uriTemplate = service.getBaseURL() + "/products/{spn}/availabilities{?region,zipCode}"; Response response = service.getClient().execute("DELETE", uriTemplate, params, headers, null); if (response != null && response.getStatusCode() >= 200 && response.getStatusCode() < 300) { return response.getBodyJSON(DeleteResponse.class); @@ -317,7 +317,7 @@ public GetResponse execute() throws ServiceException { headers.put("Authorization", authorization); } - String uriTemplate = service.getBaseURL() + "/api/v2/products/{spn}/availabilities{?region,zipCode}"; + String uriTemplate = service.getBaseURL() + "/products/{spn}/availabilities{?region,zipCode}"; Response response = service.getClient().execute("GET", uriTemplate, params, headers, null); if (response != null && response.getStatusCode() >= 200 && response.getStatusCode() < 300) { return response.getBodyJSON(GetResponse.class); @@ -379,7 +379,7 @@ public UpsertResponse execute() throws ServiceException { headers.put("Authorization", authorization); } - String uriTemplate = service.getBaseURL() + "/api/v2/products/{spn}/availabilities"; + String uriTemplate = service.getBaseURL() + "/products/{spn}/availabilities"; Response response = service.getClient().execute("POST", uriTemplate, params, headers, this.availability); if (response != null && response.getStatusCode() >= 200 && response.getStatusCode() < 300) { return response.getBodyJSON(UpsertResponse.class);