Steps for running the application :
- Download the project from github https://github.com/prasanth-tirlangi/imaginnovate-assignment
- Download Spring tool suite for eclipse from the official website https://spring.io/tools
- Open Spring tool suite and import the above downloaded project as Maven project
- Right click on the project and Click on "Run as Spring boot application"
- By default the application will run on port 8080
- Use postman to trigger the api calls
APIs
-
Save Employee Data Method : POST
URI: http://localhost:8080/api/v1/employee
Body :
{ "employeeId": "E1", "firstName": "Prasanth", "lastName": "Tirlangi", "email": "prasanth@email.com", "dateOfJoining": "2023-05-16", "salary": "50000.00", "mobileNumbers": [ { "mobileNumber": "9999999999" }, { "mobileNumber": "9999999998" } ] }
-
Employee Tax Statement Method : GET
-
Employee Data Method : GET