Using Jersey for REST API + endpoint documentation using swagger-ui
git clone https://github.com/salvitas/JerseySwagger.git
cd JerseySwagger
mvn clean install
mvn jetty:run
- Sample method test: http://localhost:8080/restws/api/phone/get
- Swagger-ui documentation: http://localhost:8080/restws
- Swagger json url for api-docs: http://localhost:8080/restws/api/api-docs