Thank you learnbrms. Below is the code snippet. I provided the slug header
as well. But, it does not make any difference.
String drl = "package .... import.... rule..blah blah";
WebClient webClient = WebClient.create(url);
webClient.header("Authorization", securityToken);
webClient =
webClient.path(basePackagePath).accept(MediaType.APPLICATION_ATOM_XML_TYPE).type(MediaType.APPLICATION_OCTET_STREAM_TYPE).header("Slug",
"myRule.drl");
return webClient.post(drl);
--
View this message in context:
http://drools.46999.n3.nabble.com/Guvnor-REST-API-Add-a-drl-file-with-sev...
Sent from the Drools: User forum mailing list archive at
Nabble.com.