sbandaru-cpal / coding-solutions

Project to Develop Solutions
1 stars 0 forks source link

TC-5 Create a endpoint that will calculate sales tax #5

Closed sbandaru-cpal closed 6 years ago

sbandaru-cpal commented 6 years ago

Create a new endpoint that will calculate sales tax for a given amount.

It should take two path parameters amount and category and should return a List of Objects that holds amount, state tax rate, tax amount and total amount

Acceptance Criteria Need to use the current tax rate of the category for a state to calculate the tax. for MI if the amount is 100 and category is computer . response should return tax rate 6 and tax amount 6 and total amount 106. need to return the response for all the states