- Install packages with
mvn package - Run
mvn spring-boot:runfor starting the application (or use your IDE)
Application (with the embedded H2 database) is ready to be used ! You can access the url below for testing it :
- Swagger UI : http://localhost:8080/swagger-ui.html
- H2 UI : http://localhost:8080/h2-console
Don't forget to set the
JDBC URLvalue asjdbc:h2:mem:testdbfor H2 UI.
- Java version : 8
- Use Spring Security to provide protection on all APIs
- Username:
admin/ Password:admin - You should add Basic Auth during each API calls
- Username:
- Use Caffeine cache to store employee info on
Get info by IDAPI- Max size:
200/ expire time:1 min Update/Add/Deleteemployee info api will update employ info in cache
- Max size:
- Add validation on
Employee entityandemployId - Add unit several test cases