This project contains two webservices
- One that allows to register a user
- One that displays the details of a registered user
Minimal requirements: Please make sure following software is installed on your PC.
- OpenJDK 11
- Lombok plugin is installed in the IDE
./gradlew clean build test
./gradlew bootRun
docker-compose -d up
# embedded memory databse using by the app
spring:
datasource:
url: jdbc:h2:mem:assessment_db
username: assessment_user
password: assessment_password
# embedded memory database using in the unit & integration tests
spring:
datasource:
url: jdbc:h2:mem:assessment_test_db
username: assessment_test_user
password: assessment_test_password
The application is running on the default port : 8080
http://localhost:8080/swagger-ui/
2023-01-13 13:40:40.415 INFO 16352 --- [io-8080-exec-10] c.a.userapi.controller.UserResource : Calling endpoint with url = '/api/users/1' and GET method
2023-01-13 13:40:40.415 INFO 16352 --- [io-8080-exec-10] c.a.userapi.controller.UserResource : Enter: UserResource -> findUserById with argument[s] = [1]
2023-01-13 13:40:40.419 INFO 16352 --- [io-8080-exec-10] c.a.userapi.controller.UserResource : Exit: UserResource -> findUserById with result = <200 OK OK,UserDTO [id=1, username=username 1, birthDate=2000-01-13, residentialCountry=FR, phone=0650936791, gender=FEMALE,[]>
2023-01-13 13:40:40.419 INFO 16352 --- [io-8080-exec-10] c.a.userapi.controller.UserResource : Execution time StopWatch 'UserResource -> findUserById': running time = 3439800 ns
Enjoy !