6.6.1.1 Prerequisites

  1. Configuring WebLogic for REST Services Authorization.
    To enable REST API authorization by OFSAA in WebLogic server, perform the following steps:
    1. Open the config.xml file located in the domain where OFSAA is deployed that is:

      <domain_home>/config/config.xml.

    2. Add the following in the security-configuration tag:

      <enforce-valid-basic-auth-credentials>false</enforce-valid-basic-authcredentials>.

  2. If MMG is SSL enabled, then the SSL certificate for MMG application should be imported in AAI.
  3. In OFSAA Application, Allow user to log in from multiple machines option should be enabled.
    REST API Calls
    There is need for Model Scripts to access input parameters passed by REST API Calls:
    1. The REST API optional parameters are mapped to runtime parameters , this mapping needs to be documented. It is not apparent from runtime parameter section.
    2. The mapped simple params can be accessed with script segment like below , but it is not supporting base64 encoding and/or json hp = '${hyperparams}' cnf = '${conf}' 3.the enhancement against json is retracted as we can do base64 encrypted value passing

      {

      "RUN_ID": 2,

      "RUN_CODE": 200440,

      "PARAM_SET": {

      "CALL_TYPE": "PASS_THROUGH_RATE",

      "BOLLINGER_PERIOD": 3,

      "BOLLINGER_COEFFICIENT": 1,

      "DATA_SNAP_FREQ": 1,

      "DATA_SNAP_FREQ_MULTIPLIER": "D",

      "MISSING_VALUE_TECH": "inpol",

      "MISSING_THRESHOLD_PERCENTAGE": 30,

      "START_DATE": 20230131,

      "END_DATE": 20230431,

      "EXECUTED_BY": "TESTUSR",

      "REFRESH_DATA": "Yes"

      },

      "SLICE": [

      {

      "SEQ": 1,

      "LOGICAL_PARTITION_NAME": "DEFAULT",

      "TABLE_NAME": "FSI_I_NM_MLSTAGE"

      }

      ],

      "OUTPUT_DATA": {

      "PLOTS_TAB": "FSI_O_NM_PLOTS",

      "MILESTONE_TAB": "FSI_O_NM_MILESTONE",

      "SCORE_TAB": "FSI_O_NM_MODEL"

      }

      }

    For example: base64 encryption