Skip to content

Minimalistic RESTful web service in in Java (Jersey)

License

Notifications You must be signed in to change notification settings

softspiders/rest-api-java-jersey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SOFTSPIDERS

rest-api-java-jersey

Minimalistic RESTful web service in Java(Jersey 2.x)

Feature tags

  • jersey
  • starter
  • template

Requirements

Оther dependencies including Jersey 2.x are transitive and therefore installed under the hood.

Code generation

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.

Build

Being in the just generated web-service directory, run:

mvn clean install

As a result, a distribution war-file will be obtained.

Installation

The war distribution then should be deployed on your servlet container Apache Tomcat, Jetty, ...)

Running

The service can be tested from the browser by typing the corresponding URL (depends on the servlet container specific) in its address bar.

Authors

Alexander Lapygin

Inspired by

mvn archetype generation of Jersey 2.28

License

Licensed under the MIT license.