I have a Java JSVC application in which I would like to expose a web/REST API from.
What is the simplest way to do so?
Every time I try to find a simple tutorial it wants me to install at least a framework and a web server (jersey, tomcat, Java EE, gradle, glassfish, spring and maven has been mentioned a lot)...
Is there a lightweight way to do it with as few dependencies as possible?
My app needs to be able to be deployed as a standalone daemon/service. It would be problematic if people had to set up a tomcat webserver and/or other stuff.
Isn't any Java app be able to bind to a port and listen for data?