This project is assembled by Gradle, and based on Spring Boot 2. Java 8 is required for compilation and execution. An internet connection is required to resolve gradle library and maven repository.
run ./gradlew build to compile and run testcases.
run ./gradlew bootRun to start up the application and visit at http://localhost:8080/
Visit http://localhost:8080/swagger-ui.html to get full API descriptions.
It's a typical Gradle java project. See codes in src/main/java, testcases in src/test/java. Package names are straightforward.
PhoneNumberController It's in Restful style.
PhoneNumberRepositoryFake Fake datas in memory. Data can be modified.
PhoneNumberService
PhoneNumberIntegrationTest An integration testcase to test all layers of the application.
PhoneNumberControllerTest An testcase to test controller layer with a mock of service. Data is mocked from PhoneNumberRepositoryFake.