How do i send content-type in Camel DELETE method. I have added the following way but It was not working correctly.
from(\"direct:start\")
.setHeader(Exchange.H
Content-type/body content is supported in apache camel through producer template with query param "deleteWithBody" by default it will be false.
String endpoint = https://testuri.com/resource;
endpoint = https://testuri.com/resource?deleteWithBody=true;
Exchange exchange;
exchange.getIn.setBody("test");
exchange.getIn.setHeader("Content-Type","application/json");
ProducerTemplate template = exchange.set(endpoint, exchange);