mstemen0010 / hebtest

code for HEB take home assignment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hebtest

code for HEB take home assignment

to run:

  1. import/clone from Github into Eclipse
  2. install SpringTools on Eclipe
  3. Built Project
  4. Run as SpringBoot from "Run" menu

** Note the code assumes that the cart.json is in the directory that Curl is run from. The install will add a file to /main/java/resources callled "data.json" --(this is the couppn json file renamed)

API thusfar:

  • http://localhost:8080/total:: Requirement #1: curl -v -H "Content-Type: application/json" -d @cart.json http://localhost:8080/total
  • http://localhost:8080/calcTaxAll:: Requirement #2: curl -v -H "Content-Type: application/json" -d @cart.json http://localhost:8080/calcTaxAll
  • http://localhost:8080/calcTaxable:: Requirement #2: curl -v -H "Content-Type: application/json" -d @cart.json http://localhost:8080/calcTaxable
  • http://localhost:8080/calcAllAppyCoupons:: Requirement #2: curl -v -H "Content-Type: application/json" -d @cart.json http://localhost:8080/calcAllAppyCoupons

About

code for HEB take home assignment


Languages

Language:Java 100.0%