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/odata/results

An ODATA endpoint that collects all RASON models on a user’s account with persistent results (which are available for OData querying) and composes the OData feed with basic model info along with its evaluations. Model must have been solved with the asynchroneous RASON API endpoint, POST rason.net/api/model/{nameorid}/solve, using the parameter response-format = WORKFLOW (the default setting for POST rason.net/api/model{nameorid}/solve).

This endpoint allows full OData querying functionality – e.g. getting available results for a specific ResourceID or ModelName using

GET rason.net/odata/results?$select=ModelName,Evaluations&$filter=ModelName eq 'opt-dm-model'

which can be read as: "SELECT ModelName, Evaluations FROM results WHERE ModelName='opt-dm-model'.

It's also possible to use ResourceID in place of ModelName. To do so replace ‘+’ with ‘%2B’.

  • URL:

    https://rason.net/OData/results

    https://rason.net/odata/results?$select=evaluations&$expand=evaluations

    https://rason.net/odata/results?$filter='{modelname}'

  • Method: GET
  • URL Params

    Required: None

    Optional: None

  • Headers:

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

    Optional: None

  • Data Params: None
  • Success Response

    Code: 200 (OK)

    • Request Example: GET https://rason.net/OData/results

      Response Example:

                  
                    {
                      "@odata.context": "https://rason.net/odata/$metadata#Results(Evaluations())",
                      "value": [
                     {
                       "ResourceID": "227768+2020-01-27-22-01-16-520127",
                       "ModelName": null,
                       "ModelVersion": null,
                       "SolveTimeStamp": "2020-01-27T22:01:19.9Z",
                       "Evaluations": [
                         {
                           "Name": "rescaling.rescaleddata.transformation"
                         },
                         {
                           "Name": "rescaling.rescalermodel.statistics"
                         }
                      ]
                    },
                    {
                      "ResourceID": "227768+2020-01-27-22-03-01-489458",
                      "ModelName": null,
                      "ModelVersion": null,
                      "SolveTimeStamp": "2020-01-27T22:03:04.873Z",
                      "Evaluations": [
                        {
                          "Name": "optmodel.x.dualValue"
                        },
                        {
                          "Name": "optmodel.x.finalValue"
                        },
                        {
                          "Name": "optmodel.x.initialValue"
                        },
                        {
                          "Name": "rescaling.rescaleddata.transformation"
                        },
                        {
                          "Name": "rescaling.rescalermodel.statistics"
                        }
                      ]
                    }
                  
                
    • Request Example: GET https://rason.net/OData/results?$select=evaluations&$expand=evaluations

      Response Example:

                  
                    {
                    "@odata.context": "https://rason.net/odata/$metadata#Results(Evaluations,Evaluations())",
                      "value": [
                        {
                          "Evaluations": [
                            {
                              "Name": "addHWModel.coefficientsInfo"
                            },
                            {
                              "Name": "addHWModel.fittedModelJson"
                            },
                            {
                              "Name": "fitted.cfe"
                            },
                          ]
                        },
                        {
                          "Evaluations": [
                            {
                              "Name": "exponential-1022.exponential-1022Model.coefficientsInfo"
                            },
                            {
                              "Name": "exponential-1022.exponential-1022Model.fittedModelJson"
                            },
                            {
                              "Name": "exponential-1022.fitted.cfe"
                            },
                          ]
                        },
                        {
                          "Evaluations": [
                            {
                              "Name": "obj.finalValue"
                            },
                            {
                              "Name": "x.finalValue"
                            },
                            {
                              "Name": "y.finalValue"
                            },
                            {
                              "Name": "z.finalValue"
                            }
                          ]
                        },
                      ]
                    }
                  
                
    • Request Examples:

      ModelName: https://rason.net/odata/results?$filter=ModelName eq 'productMixExample'

      Resource ID: https://rason.net/odata/results?$filter=ResourceID eq '227768%2B2020-01-27-22-01-16-520127'

      Response Example:

                  
                    {
                      "@odata.context": "https://rason.net/odata/$metadata#Results(Evaluations())",
                      "value": [
                        {
                          "ResourceID": "227768+productMixExample+2020-01-28-22-17-29-933835",
                          "ModelName": "productMixExample",
                          "ModelVersion": "227768+productMixExample+2020-01-28-22-17-03-362273",
                          "SolveTimeStamp": "2020-01-28T22:17:32.213Z",
                          "Evaluations": [
                            {
                              "Name": "d18.finalValue"
                            },
                            {
                              "Name": "d9:f9.finalValue"
                            }
                          ]
                        }
                      ]
                    } 
                  
                
    • Querying Example: https://rason.net/odata/results?$select=ModelName,Evaluations&$filter=ModelName eq 'productMixExample'

      Response Example:

                  
                    {
                      "@odata.context": "https://rason.net/odata/$metadata#Results(ModelName,Evaluations,Evaluations())",
                      "value": [
                        {
                          "ModelName": "productMixExample",
                          "Evaluations": [
                            {
                              "Name": "d18.finalValue"
                            },
                            {
                              "Name": "d9:f9.finalValue"
                            }
                          ]
                        }
                      ]
                    }
                  
                
Back to GET rason.net/odata/result