Skip to content

pradeepmangadu/java-challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use this spring-boot project

  • Install packages with mvn package
  • Run mvn spring-boot:run for 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 :

Don't forget to set the JDBC URL value as jdbc:h2:mem:testdb for H2 UI.

Instructions

  • Fork this project
  • Enhance the code in any ways you can see, you are free!. Some possibilities:
    • Add tests
    • Change syntax
    • Improve doc and comments
    • Fix any bug you might find
  • Edit readme.md and add any comments. It can be about what you did, what you would have done if you had more time, etc.
  • Send us the link of your fork

Restrictions

  • use java 8

What we will look for

  • Readability of your code
  • Documentation
  • Comments in your code
  • Appropriate usage of spring boot
  • Appropriate usage of packages
  • Is the application running as expected
  • No performance issues

Changes Made

  • Added Validations for the bean Object
  • Added Custom Vaidation if no data found in DB for the given employee ID
  • Responds the user with correct error response in case of any failure
  • Added ControllerAdvice for the Controller class

If had more time

  • Can add test cases

About

Java Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%