title: How to create PATCH Request to another API from my Spring boot application controller?
body: <p>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:</p>
  
  <pre><code>final String url="http://localhost:9096/id/{id}/status/completed?reason=success&amp;tag=1234";
  
      Map&lt;String, String&gt; parametersUri = new HashMap&lt;String, String&gt;();
      parametersUri.put("executions", executionPythonEntity.getExecutionId());
  
      restTemplate.exchange(url , HttpMethod.PATCH, new HttpEntity&lt;&gt;(parametersUri, headers), String.class, parametersUri);
  </code></pre>