<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The DMR library can be found here:<div class=""><br class=""></div><div class=""><a href="https://github.com/jbossas/jboss-dmr" class="">https://github.com/jbossas/jboss-dmr</a></div><div class=""><br class=""></div><div class=""><br class=""><div style=""><blockquote type="cite" class=""><div class="">On 28 May 2015, at 10:56, Heiko Braun &lt;<a href="mailto:hbraun@redhat.com" class="">hbraun@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><br class="">You can already use DMR over HTTP. It requires a different content-type ('application/dmr-encoded') and uses a base64 encoded representation of the payload ('ModelNode.toBase64String()'). <br class=""><br class="">You can describe an operation through the DMR API and then simply do HTTP POST to ‘/management’ endpoint. make sure to use 'application/dmr-encoded’ for both 'Content-Type' and ‘Accept’ headers. <br class=""><br class="">The response can be parse using 'ModelNode.fromBase64()'.<br class=""><br class="">Hope this helps,<br class="">Heiko<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On 27 May 2015, at 19:54, Jairo Junior &lt;<a href="mailto:junior.jairo1@gmail.com" class="">junior.jairo1@gmail.com</a>&gt; wrote:<br class=""><br class="">I've been working on a Puppet Module for Wildfly [1] that uses his HTTP Management API to perform operations (manage resources/deploys and execute commands), but my command execution code is a little bit limited cause I have to transform from CLI syntax to JSON. e.g.:<br class=""><br class="">:shutdown(restart=true)<br class=""><br class="">becomes<br class=""><br class="">{"operation" : "shutdown", "restart" : "true" }<br class=""><br class="">Is there any specific reason to not support plain CLI commands through HTTP API? I looked at the code and it didn't see hard to implement this...<br class=""><br class="">[1] <a href="https://github.com/biemond/biemond-wildfly" class="">https://github.com/biemond/biemond-wildfly</a><br class=""><br class="">_______________________________________________<br class="">wildfly-dev mailing list<br class=""><a href="mailto:wildfly-dev@lists.jboss.org" class="">wildfly-dev@lists.jboss.org</a><br class="">https://lists.jboss.org/mailman/listinfo/wildfly-dev<br class=""></blockquote><br class=""></div></blockquote></div><br class=""></div></body></html>