Rest service to receive commands
Use Maven 3 to compile this project
There is a jboss-web.xml file mapping the context root to /
So if you deploy in a wildfly the path will be /rest/mars
docker run -d -p 8080:8080 marceldiass/mars
The end point accept HTTP POST method and the path is /rest/mars/{actions}
You can test it with curl. Example:
curl -i -X POST "http://localhost:8080/rest/mars/MML"
HTTP/1.1 200 OK
Connection: keep-alive
X-Powered-By: Undertow/1
Server: WildFly/9
Content-Type: text/plain
Content-Length: 9
Date: Thu, 07 Jan 2016 21:59:31 GMT
(0, 2, W)