-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
None
Task: interact with the decision service using the Java client or cURL the REST interface
Java client
The example Java code for testing KIE server via Java client does not compile (missing import), doesn't run (NoClassDefFound ex). No clue on why, but probably broken dependencies. I also have to add that the documentation mentions you should "use the code of the project" but it does not seem to mention how you should get to that (I {{git clone}}d it, but just because I know how)
cURL
the task to test the KIE server using cURL, Postman or similar tool was hard to do, because I could not find documentation on how to POST data to the endpoint. I ended up coming up with my own solution by looking it up on the internet, where the only valuable piece of information was posted on a Google Group https://groups.google.com/forum/#!topic/drools-usage/PKbf4wjtleA then inferred this https://gist.github.com/evacchi/72e97f92f7c46337b81a4a40351d756b
there is no explanation on how object should be represented in the JSON payload (or at least, I could not find it)