Introduction to RASON
About RASON Models and the RASON Server
Rason Subscriptions
Rason Web IDE
Creating and Running a Decision Flow
Defining Your Optimization Model
Defining Your Simulation Model
Performing Sensitivity Analysis
Defining Your Stochastic Optimization Model
Defining Your Data Science Model
Defining Custom Types
Defining Custom Functions
Defining Your Decision Table
Defining Contexts
Using the REST API
REST API Quick Call Endpoints
REST API Endpoints
Decision Flow REST API Endpoints
OData Endpoints
OData Service for Decision Flows
Creating Your Own Application
Using Arrays, For, Loops and Tables
Organization Accounts

REST Endpoint: POST: https://rason.net/api/decision

A REST API endpoint that accepts a RASON model, calculates the decision table and returns a result in JSON format. This call should only be used with models that run very quickly, i.e. within a few seconds. There is a time limit of 30 seconds on all 'Quick Solve' calls.

  • URL: https://rason.net/api/decision
  • Method: POST
  • URL Params

    Required: None

    Optional: Any data component may be passed as a query parameter if a binding property exists for that data component. See the previous topic "Parametric Selection Feature" for a complete example illustrating how to pass a query parameter from outside or inside your RASON model.

  • Headers:

    Required: Authorization - Example: Authorization: bearer {your RASON token}

    Optional: None

  • Data Params: A RASON Decision Table Model
    
     A RASON Decision Table Model
       {
          "modelName": "DTUniqueExample",
          "modelType": "calculation",
          "modelDescription": "'U' policy example",
          "data": {
            "comment": "use binding to feed dif. values",
            "age": {
              "value": 54
            },
            "medHistory": {
              "value": "good"
            }
          },
          "decisionTables": {
            "tblRisk": {
              "inputs":  [ "age", "medHistory" ],
              "outputs": [ "riskRating", "rule" ],
              "rules": [ 
                 [">60,<25", "good", "Medium", "r1" ],
                 [">60", "bad", "High", "r2" ],
                 [ "[25..60]", "-", "Medium", "r3" ],
                 [ "<25", "bad", "Medium", "r4" ]
              ],
              "hitPolicy":"Unique",
              "default": {
              [
                "High",
                "r0"
              ]  
            ]
          }
        },
        "formulas":{
          "res": {
            "formula": "tblRisk(,,age, medHistory)",
            "finalValue": []
          }
        }
      }
    
  • Success Response

    Code: 200 (OK)

    Example Response

    
      {
        "status": {
          "code": 0,
          "id": "2590+2019-11-18-21-57-42-631488",
          "codeText": "Solver has completed the calculation."
        },
        "observations": {
          "res": {
            "value": [
            [ "Medium", "r3" ]
          ]
        }
      }
    
Back to POST rason.net/api/datamine