1. Home
  2. FlexRule Server
  3. Installation
  4. Test FlexRule Server with a Sample Project

Test FlexRule Server with a Sample Project

Print Friendly, PDF & Email

◷ Reading Time: 3 minutes

1. In your local machine, install FlexRule Designer

2. Deploy a project using the Package Builder

For instance, you can try the Delivery Cost Calculator example.

When building the package,

Test with Postman

1. Once you deploy the example, you can see it as a service under Execution Server –> Services.

2. Change the Client Secret to the App1 password that you defined during the Default Account setting in FlexRule Server Master configuration.

Type the input JSON.

    Name: "car",
    Value: {
      Airbags: "Driver, FrontPassenger",
      ModelYear: 2007,
      Made: "Hyundai",
      Model: "IX35",
      Style: "Sedan"

3. Check step-by-step guide to test in Postman.

At the end, you will be able to see the output as follows.

For example,

URL: http://frs-test.eastus.cloudapp.azure.com:9000//api/services/execute/car_insurance/2/Car_Flow


  "inputs": [
    "Name": "car",
    "Value": {
      "Airbags": "Driver, FrontPassenger",
     "ModelYear": 2007,
      "Made": "Hyundai",
      "Model": "IX35",
      "Style": "Sedan"


"outputs": [
     "name": "car",
     "value": " 
{\"Model\":\"IX35\",\"Price\":0.0,\"BasePremium\":400.0,\"AutoPremium\":1450.0,\"Style\":\"Sedan\",\"ModelYear\":2007,\"HasRollBar\":false,\"Convertible\":false,\"Age\":0,\"HasMedicalCoverage\":false,\"UninsuredMotoristCoverage\":false,\"OccupantInjuryCategory\":\"Moderate\",\"TheftCategory\":\"High\",\"Airbags\":\"Driver, FrontPassenger\",\"Made\":\"Hyundai\"}"
     "name": "isValid",
     "value": "true"
     "name": "probList",
     "value": "[\"Honda-CR-Z\",\"BMW-E63\",\"Ford-Pickup\",\"Austin-Mini\",\"Hyundai-Tucson\",\"Aprila-RS250\",\"Suzuki-RGV250\",\"Yamaha-TZR250\",\"Hyundai-IX35\",\"Honda-Passport\",\"Honda-CRF250l\",\"Kawasaki-KR1\",\"Suzuki-RMX450Z\"]"

Video Tutorial

The following video shows how you can install FlexRule Server on a virtual machine and test the REST API with Postman

Updated on August 8, 2019

Was this article helpful?

Related Articles