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: GET: https://rason.net/api/model/{nameorid}/result/{data}

A REST API endpoint that retrieves the output file containing results from the model previously submitted to GET/POST rason.net/api/model/{nameorid}/optimize, GET/POST rason.net/api/model/{nameorid}/decision, GET/POST rason.net/api/model/{nameorid}/datamine, GET/POST rason.net/api/model/{nameorid}/simulate or GET/POST rason.net/api/model/{nameorid}/solve. You must specify the output file within the "datasources" section of your RASON model.

  • URL:https://rason.net/api/model/{nameorid}/result/{datafilename}?p-relative/path/from/the/rason/file
  • Method: GET
  • URL Params

    Required: When getting a data file for the PMML model generated by a RASON model, the request becomes:

    https://rason.net/api/model/{nameorid}/result/{datafilename}?p-relative/path/from/the/rason/file

    For example, if the RASON model contains the following…

          
            "pmmlModelSrc": {
            "type": "xml",
            "content": "pmml-model",
            "connection": "results/pmml/transformation-rescaling.xml",
            "direction": "export"
            }
          
        

    The request would become:

    GET rason.net/api/model/{nameorid}/result/transformation-rescaling.xml?p=Results/PMML

    Or if the RASON connection contained…

    "connection": "transformation-rescaling.xml",

    The request would become:

    GET rason.net/api/model/{nameorid}/result/transformation-rescaling.xml

    Optional: None

  • Headers:

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

    Optional: None

  • Data Params: None
  • Success Response

    Code: 200 (OK)

    Example Request: See above.

    Example Response: Returns the contents of the file specified within the dataSources section of the RASON model.

Back to GET rason.net/api/model/{nameorid}/result