Hi all,
I was trying to use POST method of REST API to create new asset and insert
it into guvnor as in the document
http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html/...
<
http://docs.jboss.org/drools/release/5.5.0.Final/drools-guvnor-docs/html/...
Below I tried to create new asset using POST, please guide me where I was
wrong.
WebClient client =
WebClient.create("http://127.0.0.1:8080/","admin","admin",null);
Response response=
client.path("guvnor-5.4.0.Final-jboss-as-7.0/rest/packages/mortgages/assets/newtechnicalrule.drl").accept("text/plain").post(rule);
// rule is string drl which will be created with the name of
"newtechnicalrule.drl".
Welcome to any help thanks,
Nicoktay.
--
View this message in context:
http://drools.46999.n3.nabble.com/REST-API-new-asset-tp4021927.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.