Skip to content

guptasujeet/dynamic-pricer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clone Project

git clone https://github.com/guptasujeet/dynamic-pricer.git

App Usage

cd dynamic-pricer
mvn clean install
java -jar target/dynamic-pricer-1.1.8.RELEASE.jar

Skip Tests

mvn clean install -DskipTests

Debug Mode

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar target/dynamic-pricer-1.1.8.RELEASE.jar

Save Product

curl -v -X POST -H "Content-Type: application/json" -d '{"barcode" : "B12BUU33", "name" : "Product 1"}' http://localhost:8080/product

GET Product

curl -v -X GET http://localhost:8080/product/1

Get Survey Data

curl -v -X GET http://localhost:8080/productSurvey/1

Get Price Details

http://localhost:8080/getProductPriceDetails/barcode
curl -v -X GET http://localhost:8080/getProductPriceDetails/B1234

Rule File

Location of rule file is defined in application.properties file (rule.dir)

BeanShell

This project uses BeanShell to load rule dynamically.

About

Dynamic Rule Application Basic App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages