openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_DME_RFC_TR_CALL_TRAIN_DB:
    post:
      tags:
      - RS_DME_RFC_TRAINING
      summary: RFC Call - Training using DDIC tables - for engine with metadata in SAP
      operationId: /rfc/RS_DME_RFC_TR_CALL_TRAIN_DB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_DBNAME:
                  type: string
                  maxLength: 30
                  description: Table Name
                I_ENGINE:
                  type: string
                  maxLength: 30
                  description: Data Mining Method
                I_MODEL:
                  type: string
                  maxLength: 30
                  description: Data Mining Model
                I_TASK_ID:
                  type: string
                  maxLength: 30
                  description: Training Task ID (for further reference)
                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_FIELD_MAP:
                  type: array
                  items:
                    type: object
                    properties:
                      SOURCE:
                        type: string
                        maxLength: 32
                        description: Source GUID
                      OBJVERS:
                        type: string
                        maxLength: 1
                        description: Information for shipment of models
                      MODEL:
                        type: string
                        maxLength: 30
                        description: Analytical Model
                      COLUMNNAME:
                        type: string
                        maxLength: 30
                        description: Model Field Name
                      COL_DESCRIPTION:
                        type: string
                        maxLength: 50
                        description: Description
                      SRC_FLD_NAME:
                        type: string
                        maxLength: 30
                        description: Source Field Name
                      DSRC_FLD_NAME:
                        type: string
                        maxLength: 50
                        description: Display name for elements in Source
                      SRC_OBJ_TYPE:
                        type: string
                        maxLength: 1
                        description: Type of Object in the Source
                      S_IS_RELATED_TO:
                        type: string
                        maxLength: 30
                        description: Relation between Info-objects used
                      EXT_FLD_NAME:
                        type: string
                        maxLength: 30
                        description: Fields of the local store
                      DATA_SRC_NAME:
                        type: string
                        maxLength: 72
                        description: Source Name
                      REF_NAME:
                        type: string
                        maxLength: 30
                        description: Short text
                      EXT_TABLE_NAME:
                        type: string
                        maxLength: 30
                        description: Data Store
                I_T_FIELD_PARAM:
                  type: array
                  items:
                    type: object
                    properties:
                      COLUMNNAME:
                        type: string
                        maxLength: 30
                        description: Model Field Name
                      VALUE_ID:
                        type: string
                        maxLength: 30
                        description: Parameter Value GUID
                      PARAM:
                        type: string
                        maxLength: 30
                        description: Service Parameter GUID
                      SIGN:
                        type: string
                        maxLength: 1
                        description: Parameter Value SIGN
                      OPR:
                        type: string
                        maxLength: 2
                        description: Operator for Parameter Value
                      VALUE:
                        type: string
                        maxLength: 64
                        description: Default value of the parameter
                      HIGH_VALUE:
                        type: string
                        maxLength: 64
                        description: Default value of the parameter
                I_T_FIELD_VALS:
                  type: array
                  items:
                    type: object
                    properties:
                      COLUMNNAME:
                        type: string
                        maxLength: 30
                        description: Model Field Name
                      OBJVERS:
                        type: string
                        maxLength: 1
                        description: Information for shipment of models
                      PROC_TYPE:
                        type: string
                        maxLength: 10
                        description: Value processing type
                      VALID:
                        type: string
                        maxLength: 30
                        description: Model Field Value GUID
                      VALUE:
                        type: string
                        maxLength: 64
                        description: Model Field Value (low)
                      HIGH_VALUE:
                        type: string
                        maxLength: 64
                        description: Model Field Value (High)
                      WEIGHT:
                        type: integer
                        format: int64
                        description: Individual Weights
                      USE_VALUE_AS:
                        type: string
                        maxLength: 1
                        description: Use of the Model Field Values
                      SIGN:
                        type: string
                        maxLength: 1
                        description: Model Field Value SIGN
                      OPR:
                        type: string
                        maxLength: 2
                        description: Operator for Model Field Value
                      MAP_VALUE:
                        type: string
                        maxLength: 64
                        description: Mapped value
                      BORDER:
                        type: string
                        maxLength: 2
                        description: Border Range
                      TEXT:
                        type: string
                        maxLength: 50
                        description: Description
                I_T_MOD_FIELDS:
                  type: array
                  items:
                    type: object
                    properties:
                      COLUMNNAME:
                        type: string
                        maxLength: 30
                        description: Model Field Name
                      OBJVERS:
                        type: string
                        maxLength: 1
                        description: Information for shipment of models
                      DATA_TYPE:
                        type: string
                        maxLength: 4
                        description: Data Type
                      CHAR_MAX_LENGTH:
                        type: integer
                        format: int64
                        description: Maximum length of the char field
                      NUM_PRECISION:
                        type: integer
                        format: int64
                        description: Total Length of Numeric Field
                      NUM_SCALE:
                        type: integer
                        format: int64
                        description: Number of digits to the right of the decimal point
                      DATE_PRECISION:
                        type: integer
                        format: int64
                        description: Date Precision
                      CONTENT_TYPE:
                        type: string
                        maxLength: 3
                        description: Content Type ID
                      DISTR_TYPE:
                        type: string
                        maxLength: 3
                        description: Distribution Type ID
                      DESCRIPTION:
                        type: string
                        maxLength: 50
                        description: Description
                      IS_RELATED_TO:
                        type: string
                        maxLength: 30
                        description: Model Field Name
                      OBJ_TYPE:
                        type: string
                        maxLength: 1
                        description: Type of Object in the Source
                      IS_PREDICTABLE:
                        type: string
                        maxLength: 1
                        description: Model field is predictable
                      IOBJNM:
                        type: string
                        maxLength: 30
                        description: InfoObject
                      DATA_ELEMENT:
                        type: string
                        maxLength: 30
                        description: Data element (semantic domain)
                I_T_MOD_PARAM:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJVERS:
                        type: string
                        maxLength: 1
                        description: Information for shipment of models
                      VALUE_ID:
                        type: string
                        maxLength: 30
                        description: Parameter Value GUID
                      PARAM:
                        type: string
                        maxLength: 30
                        description: Parameter Name
                      INSTANCE:
                        type: integer
                        format: int32
                        description: Instance ID
                      SIGN:
                        type: string
                        maxLength: 1
                        description: Parameter Value SIGN
                      OPR:
                        type: string
                        maxLength: 2
                        description: Operator for Parameter Value
                      VALUE:
                        type: string
                        maxLength: 64
                        description: Parameter Value ( low )
                      HIGH_VALUE:
                        type: string
                        maxLength: 64
                        description: Parameter Value ( High)
              required:
              - I_DBNAME
              - I_ENGINE
              - I_MODEL
              - I_TASK_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  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_FIELD_MAP:
                    type: array
                    items:
                      type: object
                      properties:
                        SOURCE:
                          type: string
                          maxLength: 32
                          description: Source GUID
                        OBJVERS:
                          type: string
                          maxLength: 1
                          description: Information for shipment of models
                        MODEL:
                          type: string
                          maxLength: 30
                          description: Analytical Model
                        COLUMNNAME:
                          type: string
                          maxLength: 30
                          description: Model Field Name
                        COL_DESCRIPTION:
                          type: string
                          maxLength: 50
                          description: Description
                        SRC_FLD_NAME:
                          type: string
                          maxLength: 30
                          description: Source Field Name
                        DSRC_FLD_NAME:
                          type: string
                          maxLength: 50
                          description: Display name for elements in Source
                        SRC_OBJ_TYPE:
                          type: string
                          maxLength: 1
                          description: Type of Object in the Source
                        S_IS_RELATED_TO:
                          type: string
                          maxLength: 30
                          description: Relation between Info-objects used
                        EXT_FLD_NAME:
                          type: string
                          maxLength: 30
                          description: Fields of the local store
                        DATA_SRC_NAME:
                          type: string
                          maxLength: 72
                          description: Source Name
                        REF_NAME:
                          type: string
                          maxLength: 30
                          description: Short text
                        EXT_TABLE_NAME:
                          type: string
                          maxLength: 30
                          description: Data Store
                  I_T_FIELD_PARAM:
                    type: array
                    items:
                      type: object
                      properties:
                        COLUMNNAME:
                          type: string
                          maxLength: 30
                          description: Model Field Name
                        VALUE_ID:
                          type: string
                          maxLength: 30
                          description: Parameter Value GUID
                        PARAM:
                          type: string
                          maxLength: 30
                          description: Service Parameter GUID
                        SIGN:
                          type: string
                          maxLength: 1
                          description: Parameter Value SIGN
                        OPR:
                          type: string
                          maxLength: 2
                          description: Operator for Parameter Value
                        VALUE:
                          type: string
                          maxLength: 64
                          description: Default value of the parameter
                        HIGH_VALUE:
                          type: string
                          maxLength: 64
                          description: Default value of the parameter
                  I_T_FIELD_VALS:
                    type: array
                    items:
                      type: object
                      properties:
                        COLUMNNAME:
                          type: string
                          maxLength: 30
                          description: Model Field Name
                        OBJVERS:
                          type: string
                          maxLength: 1
                          description: Information for shipment of models
                        PROC_TYPE:
                          type: string
                          maxLength: 10
                          description: Value processing type
                        VALID:
                          type: string
                          maxLength: 30
                          description: Model Field Value GUID
                        VALUE:
                          type: string
                          maxLength: 64
                          description: Model Field Value (low)
                        HIGH_VALUE:
                          type: string
                          maxLength: 64
                          description: Model Field Value (High)
                        WEIGHT:
                          type: integer
                          format: int64
                          description: Individual Weights
                        USE_VALUE_AS:
                          type: string
                          maxLength: 1
                          description: Use of the Model Field Values
                        SIGN:
                          type: string
                          maxLength: 1
                          description: Model Field Value SIGN
                        OPR:
                          type: string
                          maxLength: 2
                          description: Operator for Model Field Value
                        MAP_VALUE:
                          type: string
                          maxLength: 64
                          description: Mapped value
                        BORDER:
                          type: string
                          maxLength: 2
                          description: Border Range
                        TEXT:
                          type: string
                          maxLength: 50
                          description: Description
                  I_T_MOD_FIELDS:
                    type: array
                    items:
                      type: object
                      properties:
                        COLUMNNAME:
                          type: string
                          maxLength: 30
                          description: Model Field Name
                        OBJVERS:
                          type: string
                          maxLength: 1
                          description: Information for shipment of models
                        DATA_TYPE:
                          type: string
                          maxLength: 4
                          description: Data Type
                        CHAR_MAX_LENGTH:
                          type: integer
                          format: int64
                          description: Maximum length of the char field
                        NUM_PRECISION:
                          type: integer
                          format: int64
                          description: Total Length of Numeric Field
                        NUM_SCALE:
                          type: integer
                          format: int64
                          description: Number of digits to the right of the decimal point
                        DATE_PRECISION:
                          type: integer
                          format: int64
                          description: Date Precision
                        CONTENT_TYPE:
                          type: string
                          maxLength: 3
                          description: Content Type ID
                        DISTR_TYPE:
                          type: string
                          maxLength: 3
                          description: Distribution Type ID
                        DESCRIPTION:
                          type: string
                          maxLength: 50
                          description: Description
                        IS_RELATED_TO:
                          type: string
                          maxLength: 30
                          description: Model Field Name
                        OBJ_TYPE:
                          type: string
                          maxLength: 1
                          description: Type of Object in the Source
                        IS_PREDICTABLE:
                          type: string
                          maxLength: 1
                          description: Model field is predictable
                        IOBJNM:
                          type: string
                          maxLength: 30
                          description: InfoObject
                        DATA_ELEMENT:
                          type: string
                          maxLength: 30
                          description: Data element (semantic domain)
                  I_T_MOD_PARAM:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJVERS:
                          type: string
                          maxLength: 1
                          description: Information for shipment of models
                        VALUE_ID:
                          type: string
                          maxLength: 30
                          description: Parameter Value GUID
                        PARAM:
                          type: string
                          maxLength: 30
                          description: Parameter Name
                        INSTANCE:
                          type: integer
                          format: int32
                          description: Instance ID
                        SIGN:
                          type: string
                          maxLength: 1
                          description: Parameter Value SIGN
                        OPR:
                          type: string
                          maxLength: 2
                          description: Operator for Parameter Value
                        VALUE:
                          type: string
                          maxLength: 64
                          description: Parameter Value ( low )
                        HIGH_VALUE:
                          type: string
                          maxLength: 64
                          description: Parameter Value ( High)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
