Minimalistic RESTful web service in Java(Jersey 2.x)
- jersey
- starter
- template
- Java 7
- Apache Maven
- Some servlet container for deploying and running: Apache Tomcat, Jetty, ...
Оther dependencies including Jersey 2.x are transitive and therefore installed under the hood.
All code of this repository is a source code for Servlet container deployable Jersey 2.28 web-service and it is generated. To create the source code, use
mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.28
After several questions and your relevant answers, the source code of the web service will be generated.
Being in the just generated web-service directory, run:
mvn clean install
As a result, a distribution war-file will be obtained.
The war distribution then should be deployed on your servlet container Apache Tomcat, Jetty, ...)
The service can be tested from the browser by typing the corresponding URL (depends on the servlet container specific) in its address bar.
mvn archetype generation of Jersey 2.28
Licensed under the MIT license.