Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.12 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.12 KB

spring-drools

License

Minimal Spring Boot sample app.

Drools decision table implementation in spring boot

Requirements

For building and running the application you need:

Running the application locally

There are several ways to run a Spring Boot application on your local machine. One way is to execute the main method in the com.drools.example.SpringDroolsApplication class from your IDE.

Alternatively you can use the Spring Boot Maven plugin like so:

mvn spring-boot:run

Requests

URL: http://localhost:9091/order Method: POST Request body:

{
	"name":"Mobile",
	"cardType":"HDFC",
	"price":15000
}

Response body:

{
    "name": "Mobile",
    "cardType": "HDFC",
    "discount": 10,
    "price": 15000
}