This project is intended for use as a template to quickly develop and test RESTful services using an embedded lightweight http container or java based server (like Jetty) that can be configured and started programatically using Jersey RESTful Webservices framework on top of a gradle build pipeline.
The project contains build and deployment settings and certain container configuration that should make it very easy to check out and modify for your development needs.
The app itself contains a minimalist HelloResource
that exposes a 'greeting' interface. A Junit test is also included to test the service.
To get you started simply clone or download this repository. You will need to get git from here
You will need to put together a gradle build pipeline and set your IDE to use JDK 1.8
To run the project enter any of the following commands from the project root
$gradle build
$gradle test
You can publish your project onto your embedded Jetty server using the following command
$gradle appRun
You server should start up promptly. You can browse to your service - http://localhost:8080/jersey_rest_framework
For more on Jersey RESTful WebServices framework, please visit Project Jersey