Java application implementing a sample REST API using JAX-RS.
In this case, we are using Jersey as JAX-RS implementation, but we could use RESTEasy as well.
Execute the following command:
mvn clean compile
Execute the following command:
mvn clean package
Deploy the war file generated within the target folder to your preferred server/container, such as Tomcat.
If you want to generate the API specification from the source code, just execute the following command:
mvn clean compile
The API specification will be generated within the generated/swagger-api-spec folder.