I want to send a PATCH Request to another Springboot Application running at localhost:9096 from my Spring boot app. I have to encode certain parameters into the URL to which i have to send the patch request. Here is something that i tried:
final String url="http://localhost:9096/id/{id}/status/completed?reason=success&tag=1234";
Map<String, String> parametersUri = new HashMap<String, String>();
parametersUri.put("executions", executionPythonEntity.getExecutionId());
restTemplate.exchange(url , HttpMethod.PATCH, new HttpEntity<>(parametersUri, headers), String.class, parametersUri);