This application validates the case data based on the validation rules supplied.
Prerequisites
Building
The project uses Gradle as a build tool but you don't have to install it locally since there is a
./gradlew
wrapper script.
To build project please execute the following command:
./gradlew build
Running
First you need to create distribution by executing following command:
./gradlew installDist
When the distribution has been created in build/install/div-validaton-serivce
directory,
you can run the application by executing following command:
./gradlew bootRun
As a result the following container(s) will get created and started:
- long living container for API application exposing port
4008
(./gradlew bootRun
will stop at 75% but this is expected and you should still be able to access it)
Mutation tests
To run all mutation tests execute the following command:
./gradlew pitest
Unit tests
To run all unit tests please execute following command:
./gradlew test
Coding style tests
To run all checks (including unit tests) please execute following command:
./gradlew check
API documentation
API documentation is provided with Swagger:
http://localhost:4008/swagger-ui.html
- UI to interact with the API resources
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Standard API
We follow RESTful API standards.
This project is licensed under the MIT License - see the LICENSE.md file for details.