REST API for calculating taxes
To build the project, run the following command:
make build
Binary is /bin/taxcalculator
To run unit tests, run the following command:
make test
To see code coverage of unit test, run the following command:
make coverage
Detailed report of coverage is coverage.html
To run integration tests, run the following command:
make testIT
To run tax calculator, run the following command:
make run
To get taxes for a year and salary call the following api
http://localhost:8080/tax/{year}?s={salary}
e.g To get taxes for year 2022 and salary 80000 call
http://localhost:8080/tax/2022?s=80000
To update swagger documentation, run the following command:
make swagger