Skip to content

coolgc85/salaryAdmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SalaryAdmin

Problem

  1. Create a data access layer that consumes the following API (that you can test through swagger) as your data repository. API response example:
[{"id":1,"name":"Andrea","contractTypeName":"HourlySalaryEmployee","roleId":1,"roleName":"Administrator","roleDescription":null,"hourlySalary":10000.0,"monthlySalary":50000.0},
{"id":2,"name":"Alex","contractTypeName":"MonthlySalaryEmployee","roleId":2,"roleName":"Contractor","roleDescription":null,"hourlySalary":10000.0,"monthlySalary":50000.0}]
  1. Based on data returned on previous step, build a new package that returns the employee with his calculated Annual Salary following these rules: • Employees can have to 2 types of Contracts: Hourly Salary Contract and Monthly Salary Contract. ▪ For Hourly Salary Employees the Annual Salary is

120 * HourlySalary * 12

▪ For Monthly Salary Employees the Annual Salary is

120 * Monthly * 12

Execution

Use maven

mvn clean package -DskipTests=true

Usage

java -jar ./target/salaryAdmin-0.0.1-SNAPSHOT.jar

Usage on Windows

java -jar .\target\salaryAdmin-0.0.1-SNAPSHOT.jar

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages