git clone https://github.com/guptasujeet/dynamic-pricer.git
cd dynamic-pricer
mvn clean install
java -jar target/dynamic-pricer-1.1.8.RELEASE.jar
mvn clean install -DskipTests
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar target/dynamic-pricer-1.1.8.RELEASE.jar
curl -v -X POST -H "Content-Type: application/json" -d '{"barcode" : "B12BUU33", "name" : "Product 1"}' http://localhost:8080/product
curl -v -X GET http://localhost:8080/product/1
curl -v -X GET http://localhost:8080/productSurvey/1
http://localhost:8080/getProductPriceDetails/barcode
curl -v -X GET http://localhost:8080/getProductPriceDetails/B1234
Location of rule file is defined in application.properties file (rule.dir)
This project uses BeanShell to load rule dynamically.