Issue
I need to pass a request body to make a delete request in order to call a third-party API's delete Request. Is it possible?
Solution
So I have found the way that I was searching for. The problem can be solved using Rest template
RestTemplate restTemplate = new RestTemplate();
HttpEntity<Model> request = new HttpEntity<>(new Model("data"));
restTemplate.exchange(url, HttpMethod.DELETE, request, null);
Answered By - PKS
Answer Checked By - David Goodson (JavaFixing Volunteer)