Hi!
I am trying to implement a PUT request from java. When I use my resource as "item/$ITEM_ID" (I have replaced $ITEM_ID with the real item id) in:
RestClientApi apiInstance = new RestClientApi(defaultClient);
apiInstance.resourcePut(resource, accessToken, body);
I receive an 400 error, which means that the server not recognized that resource.
I debug the method and I noticed that the method ApiClient.escapeString is replacing the slash of "items/$ITEM_ID" because of
URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20");
when I evaluate the result of that code I found:
"/items%2F$ITEM_ID" instead of "/items/$ITEM_ID"
I will appreciate if you can find a solution of this.
Have a nice day!
Hi!
I am trying to implement a PUT request from java. When I use my resource as "item/$ITEM_ID" (I have replaced $ITEM_ID with the real item id) in:
RestClientApi apiInstance = new RestClientApi(defaultClient);apiInstance.resourcePut(resource, accessToken, body);I receive an 400 error, which means that the server not recognized that resource.
I debug the method and I noticed that the method ApiClient.escapeString is replacing the slash of "items/$ITEM_ID" because of
URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20");when I evaluate the result of that code I found:
"/items%2F$ITEM_ID" instead of "/items/$ITEM_ID"
I will appreciate if you can find a solution of this.
Have a nice day!