This is an example Bootique REST service app with Jersey. It shows how to create and register REST endpoints, write integration tests for the REST API, assemble and run the application.
Run the following command to build the code, run the tests and package the app:
cd jersey-server-example/
mvn clean package
The following command prints a help message with supported options:
java -jar target/jersey-server-example-3.0.jar
The following command runs the REST app with the default config. Once the app is started, you can access the REST endpoint via the following URL: http://127.0.0.1:8080/
java -jar target/jersey-server-example-3.0.jar --server
The following command runs the REST app with a custom config that changes the app port and context. The new endpoint URL will be http://127.0.0.1:9000/bq
java -jar target/jersey-server-example-3.0.jar --server --config=config.yml