A simple HTTP REST service web application also called as Person API
- This project has been hosted in Openshift
- Access this project @ http://http-patch-vidhya.1d35.starter-us-east-1.openshiftapps.com/
- Swagger for this API http-patch-demo-swagger.json
- Deeplink for direct import
- Try this Person API at http://try.personapi.labkit.in/
- checkout
git clone https://github.com/vidhya03/http-patch-jax-rs.git
- compile
cd http-patch-jax-rs.git
mvn compile
-
Spotbugs SpotBugs is a program which uses static analysis to look for bugs in Java code.
Spotbugs can be triggred via compile time.
mvn -Pspotbugs compile
Spotbugs can also be check by using the below command.
mvn -Pspotbugs spotbugs:check
Debug
the spotbugs error via the following command.
mvn -Pspotbugs spotbugs:gui
The above command will popup spotbugs errors in GUI like this
- To run test against production
mvn test
- To run test against local deployment
mvn test -Dkarate.env=dev
and the HTML reports would be output to /target/surefire-reports/TEST-com.labkit.test.personapi.PersonApi.html
- To run test and perform code coverage
mvn cobertura:cobertura
and the HTML reports would be output to target/site/cobertura/index.html
- To run test and perform code coverage
mvn clean test -Pcoverage
and the HTML reports would be output to target/site/jacoco/index.html
- @vidhya03 : The Enthusiastic