openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_DME_RFC_PR_CALL_PRED_FILE:
    post:
      tags:
      - RS_DME_RFC_PREDICTION
      summary: Run file based Prediction
      operationId: /rfc/RS_DME_RFC_PR_CALL_PRED_FILE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_FILE_PROPS:
                  type: object
                  properties:
                    FILE_TYPE:
                      type: string
                      maxLength: 10
                      description: 'File Type (ASCII/BIN)  enumValues: CSV=CSV Type File Output,FIX=Fixed Width Type File Output'
                      enum:
                      - CSV
                      - FIX
                    FIELD_SEP:
                      type: string
                      maxLength: 1
                      description: 'Field Seperator  enumValues: ""=,,=Comma,;=Semi colon'
                      enum:
                      - ''
                      - ','
                      - ;
                    PARAM_1:
                      type: string
                      maxLength: 255
                      description: Char255
                    PARAM_2:
                      type: string
                      maxLength: 255
                      description: Char255
                    PARAM_3:
                      type: string
                      maxLength: 255
                      description: Char255
                    LOGICAL_PATH:
                      type: string
                      maxLength: 60
                      description: Logical path name
                I_ENGINE:
                  type: string
                  maxLength: 30
                  description: Analytical service
                I_FILE:
                  type: string
                  description: Input File Path
                I_MODEL:
                  type: string
                  maxLength: 30
                  description: Analytical Model
                I_PERFORM_EVALUATION:
                  type: string
                  maxLength: 1
                  description: Perform Evaluation
                E_T_ERROR_MATRIX:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASS_ACTUAL:
                        type: string
                        maxLength: 64
                        description: Attribute Values
                      CLASS_PREDICTED:
                        type: string
                        maxLength: 64
                        description: Attribute Values
                      CLASS_ACT_TXT:
                        type: string
                        maxLength: 64
                        description: Attribute Values
                      CLASS_PRED_TXT:
                        type: string
                        maxLength: 64
                        description: Attribute Values
                      COUNTS:
                        type: integer
                        format: int64
                        description: Counts (Occurences, Frequency Distributions etc)
                E_T_RETURN:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                      ID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      NUMBER:
                        type: integer
                        format: int64
                        description: Message Number
                      MESSAGE:
                        type: string
                        maxLength: 220
                        description: Message Text
                      LOG_NO:
                        type: string
                        maxLength: 20
                        description: 'Application log: log number'
                      LOG_MSG_NO:
                        type: integer
                        format: int64
                        description: 'Application log: Internal message serial number'
                      MESSAGE_V1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MESSAGE_V4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      PARAMETER:
                        type: string
                        maxLength: 32
                        description: Parameter Name
                      ROW:
                        type: integer
                        format: int32
                        description: Lines in parameter
                      FIELD:
                        type: string
                        maxLength: 30
                        description: Field in parameter
                      SYSTEM:
                        type: string
                        maxLength: 10
                        description: Logical system from which message originates
                I_T_CONN_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAM_NAME:
                        type: string
                        maxLength: 40
                        description: Name of Data Mining Vendor specific connection parameter
                      PARAM_DESC:
                        type: string
                        maxLength: 50
                        description: Description
                      PARAM_VALUE:
                        type: string
                        maxLength: 40
                        description: Value of a Data Mining Vendor specific connection parameter
                I_T_DATA_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      KEYF:
                        type: string
                        maxLength: 1
                        description: Boolean
                      KEYC:
                        type: string
                        maxLength: 1
                        description: Boolean
                      BLOCK:
                        type: string
                        maxLength: 1
                        description: Boolean
                      COND:
                        type: string
                        maxLength: 1
                        description: Boolean
                      NEWCOL:
                        type: string
                        maxLength: 1
                        description: Boolean
                      LENG:
                        type: integer
                        format: int64
                        description: Length (No. of Characters)
                      INTLEN:
                        type: integer
                        format: int64
                        description: Internal Length in Bytes
                      INTTYPE:
                        type: string
                        maxLength: 1
                        description: ABAP data type (C,D,N,...)
                      TEXT:
                        type: string
                        maxLength: 20
                        description: 'Services: Text for a Data Item/Parameter Item'
                      EXTTEXT:
                        type: string
                        maxLength: 1
                        description: 'Services: Text Is Managed Externally'
                      DDICFLAG:
                        type: string
                        maxLength: 1
                        description: Boolean
                      DOMNAME:
                        type: string
                        maxLength: 30
                        description: Domain name
                      ROLLNAME:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                      CHECKTABLE:
                        type: string
                        maxLength: 30
                        description: Table Name
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field for currency and qty fields
                      MEMORYID:
                        type: string
                        maxLength: 20
                        description: Set/Get parameter ID
                      CONVEXIT:
                        type: string
                        maxLength: 5
                        description: Conversion Routine
                      LOWERCASE:
                        type: string
                        maxLength: 1
                        description: Lowercase letters allowed/not allowed
                      MAC:
                        type: string
                        maxLength: 1
                        description: Flag if search help is attached to the field
                      VALEXI:
                        type: string
                        maxLength: 1
                        description: Existence of fixed values
                      TABNAME:
                        type: string
                        maxLength: 30
                        description: Table Name
                      COMPONENT:
                        type: integer
                        format: int32
                        description: Integer Value
                      IOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                I_T_FILE_LAYOUT_INPUT:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      POSITION:
                        type: integer
                        format: int64
                        description: 'Verification: Column position'
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                      LENGTH:
                        type: integer
                        format: int32
                        description: 'iSeries: Table field length'
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      OFFSET:
                        type: integer
                        format: int64
                        description: Offset of a field
                      INTTYPE:
                        type: string
                        maxLength: 1
                        description: ABAP data type (C,D,N,...)
                I_T_FILE_LAYOUT_OUTPUT:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELDNAME:
                        type: string
                        maxLength: 30
                        description: Field Name
                      POSITION:
                        type: integer
                        format: int64
                        description: 'Verification: Column position'
                      DATATYPE:
                        type: string
                        maxLength: 4
                        description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                      LENGTH:
                        type: integer
                        format: int32
                        description: 'iSeries: Table field length'
                      DECIMALS:
                        type: integer
                        format: int64
                        description: Number of Decimal Places
                      OUTPUTLEN:
                        type: integer
                        format: int64
                        description: Output Length
                      OFFSET:
                        type: integer
                        format: int64
                        description: Offset of a field
                      INTTYPE:
                        type: string
                        maxLength: 1
                        description: ABAP data type (C,D,N,...)
                I_T_MAPPING:
                  type: array
                  items:
                    type: object
                    properties:
                      MODEL_FIELD:
                        type: string
                        maxLength: 30
                        description: Model Field ID
                      DATA_FIELD:
                        type: string
                        maxLength: 30
                        description: Input data field
                      IS_OUTPUT_FIELD:
                        type: string
                        maxLength: 1
                        description: Field Type - Model Signature field / Prediction Output Field
                      RANK:
                        type: integer
                        format: int32
                        description: Rank
                      TARGET_VAL:
                        type: string
                        maxLength: 64
                        description: Target Value (RFC)
                      MAP_BY_RANK:
                        type: string
                        maxLength: 1
                        description: Mapped by Rank ?
                      DATA_FIELD_POS:
                        type: integer
                        format: int64
                        description: 'Verification: Column position'
                I_T_PARAMS:
                  type: array
                  items:
                    type: object
                    properties:
                      PARAM:
                        type: string
                        maxLength: 30
                        description: Prediction Parameter - Name
                      VALUE:
                        type: string
                        maxLength: 250
                        description: Param Value (RFC)
              required:
              - IS_FILE_PROPS
              - I_ENGINE
              - I_FILE
              - I_MODEL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_FILE:
                    type: string
                    description: Output File Information
                  E_MISCLASSIFIED_COUNTS:
                    type: integer
                    format: int64
                    description: Missclassified counts
                  E_T_ERROR_MATRIX:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASS_ACTUAL:
                          type: string
                          maxLength: 64
                          description: Attribute Values
                        CLASS_PREDICTED:
                          type: string
                          maxLength: 64
                          description: Attribute Values
                        CLASS_ACT_TXT:
                          type: string
                          maxLength: 64
                          description: Attribute Values
                        CLASS_PRED_TXT:
                          type: string
                          maxLength: 64
                          description: Attribute Values
                        COUNTS:
                          type: integer
                          format: int64
                          description: Counts (Occurences, Frequency Distributions etc)
                  E_T_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  I_T_CONN_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAM_NAME:
                          type: string
                          maxLength: 40
                          description: Name of Data Mining Vendor specific connection parameter
                        PARAM_DESC:
                          type: string
                          maxLength: 50
                          description: Description
                        PARAM_VALUE:
                          type: string
                          maxLength: 40
                          description: Value of a Data Mining Vendor specific connection parameter
                  I_T_DATA_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        KEYF:
                          type: string
                          maxLength: 1
                          description: Boolean
                        KEYC:
                          type: string
                          maxLength: 1
                          description: Boolean
                        BLOCK:
                          type: string
                          maxLength: 1
                          description: Boolean
                        COND:
                          type: string
                          maxLength: 1
                          description: Boolean
                        NEWCOL:
                          type: string
                          maxLength: 1
                          description: Boolean
                        LENG:
                          type: integer
                          format: int64
                          description: Length (No. of Characters)
                        INTLEN:
                          type: integer
                          format: int64
                          description: Internal Length in Bytes
                        INTTYPE:
                          type: string
                          maxLength: 1
                          description: ABAP data type (C,D,N,...)
                        TEXT:
                          type: string
                          maxLength: 20
                          description: 'Services: Text for a Data Item/Parameter Item'
                        EXTTEXT:
                          type: string
                          maxLength: 1
                          description: 'Services: Text Is Managed Externally'
                        DDICFLAG:
                          type: string
                          maxLength: 1
                          description: Boolean
                        DOMNAME:
                          type: string
                          maxLength: 30
                          description: Domain name
                        ROLLNAME:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                        CHECKTABLE:
                          type: string
                          maxLength: 30
                          description: Table Name
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                        REFFIELD:
                          type: string
                          maxLength: 30
                          description: Reference field for currency and qty fields
                        MEMORYID:
                          type: string
                          maxLength: 20
                          description: Set/Get parameter ID
                        CONVEXIT:
                          type: string
                          maxLength: 5
                          description: Conversion Routine
                        LOWERCASE:
                          type: string
                          maxLength: 1
                          description: Lowercase letters allowed/not allowed
                        MAC:
                          type: string
                          maxLength: 1
                          description: Flag if search help is attached to the field
                        VALEXI:
                          type: string
                          maxLength: 1
                          description: Existence of fixed values
                        TABNAME:
                          type: string
                          maxLength: 30
                          description: Table Name
                        COMPONENT:
                          type: integer
                          format: int32
                          description: Integer Value
                        IOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                  I_T_FILE_LAYOUT_INPUT:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        POSITION:
                          type: integer
                          format: int64
                          description: 'Verification: Column position'
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                        LENGTH:
                          type: integer
                          format: int32
                          description: 'iSeries: Table field length'
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        OFFSET:
                          type: integer
                          format: int64
                          description: Offset of a field
                        INTTYPE:
                          type: string
                          maxLength: 1
                          description: ABAP data type (C,D,N,...)
                  I_T_FILE_LAYOUT_OUTPUT:
                    type: array
                    items:
                      type: object
                      properties:
                        FIELDNAME:
                          type: string
                          maxLength: 30
                          description: Field Name
                        POSITION:
                          type: integer
                          format: int64
                          description: 'Verification: Column position'
                        DATATYPE:
                          type: string
                          maxLength: 4
                          description: 'ABAP/4 Dictionary: Screen data type for Screen Painter'
                        LENGTH:
                          type: integer
                          format: int32
                          description: 'iSeries: Table field length'
                        DECIMALS:
                          type: integer
                          format: int64
                          description: Number of Decimal Places
                        OUTPUTLEN:
                          type: integer
                          format: int64
                          description: Output Length
                        OFFSET:
                          type: integer
                          format: int64
                          description: Offset of a field
                        INTTYPE:
                          type: string
                          maxLength: 1
                          description: ABAP data type (C,D,N,...)
                  I_T_MAPPING:
                    type: array
                    items:
                      type: object
                      properties:
                        MODEL_FIELD:
                          type: string
                          maxLength: 30
                          description: Model Field ID
                        DATA_FIELD:
                          type: string
                          maxLength: 30
                          description: Input data field
                        IS_OUTPUT_FIELD:
                          type: string
                          maxLength: 1
                          description: Field Type - Model Signature field / Prediction Output Field
                        RANK:
                          type: integer
                          format: int32
                          description: Rank
                        TARGET_VAL:
                          type: string
                          maxLength: 64
                          description: Target Value (RFC)
                        MAP_BY_RANK:
                          type: string
                          maxLength: 1
                          description: Mapped by Rank ?
                        DATA_FIELD_POS:
                          type: integer
                          format: int64
                          description: 'Verification: Column position'
                  I_T_PARAMS:
                    type: array
                    items:
                      type: object
                      properties:
                        PARAM:
                          type: string
                          maxLength: 30
                          description: Prediction Parameter - Name
                        VALUE:
                          type: string
                          maxLength: 250
                          description: Param Value (RFC)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
