openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_DME_MG_CHECK_COL_MAP:
    post:
      tags:
      - RS_DME_MP_GEN
      summary: Check column mapping
      operationId: /rfc/RS_DME_MG_CHECK_COL_MAP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_DS:
                  type: object
                  properties:
                    SOURCE:
                      type: string
                      maxLength: 32
                      description: Source GUID
                    OBJVERS:
                      type: string
                      maxLength: 1
                      description: 'Information for shipment of models  enumValues: A=Active,M=Modified,D=Development'
                      enum:
                      - A
                      - M
                      - D
                    MODEL:
                      type: string
                      maxLength: 30
                      description: Analytical Model
                    INSTANCE_ID:
                      type: integer
                      format: int32
                      description: Instance ID
                    REF_NAME:
                      type: string
                      maxLength: 30
                      description: Short text
                    NAME:
                      type: string
                      maxLength: 72
                      description: Source Name
                    EXT_TABLE_NAME:
                      type: string
                      maxLength: 30
                      description: Data Store
                    TORP:
                      type: string
                      maxLength: 1
                      description: 'Indicating Training, Prediction or Evaluation  enumValues: T=Training,A=All,E=Evaluation,P=Prediction'
                      enum:
                      - T
                      - A
                      - E
                      - P
                    DS_VARIANT:
                      type: string
                      maxLength: 14
                      description: 'ABAP: Name of variant (without program name)'
                    TYPE:
                      type: string
                      maxLength: 1
                      description: 'Source Type  enumValues: Q=OLAP Query,I=InfoSet Query,V=Query View,E=External Input,C=InfoCube'
                      enum:
                      - Q
                      - I
                      - V
                      - E
                      - C
                    CREATED_BY:
                      type: string
                      maxLength: 12
                      description: User who has created the model
                    LAST_MODIFIED_BY:
                      type: string
                      maxLength: 12
                      description: User who has modified the model
                    CREATED_ON:
                      type: string
                      maxLength: 14
                      description: Time Stamp of model creation
                    MODIFIED_ON:
                      type: string
                      maxLength: 14
                      description: Time Stamp of model modification
                    STATE:
                      type: string
                      maxLength: 1
                      description: 'Status of Model and Source  enumValues: I=In Process,S=Scheduled,N=New,P=Predicted,V=Evaluated,E=Error,T=Trained,X=Extracted'
                      enum:
                      - I
                      - S
                      - N
                      - P
                      - V
                      - E
                      - T
                      - X
                    DESCRIPTION:
                      type: string
                      maxLength: 50
                      description: Description
                I_SERVICE:
                  type: string
                  maxLength: 30
                  description: Analytical service
                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_COL_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  enumValues: A=Active,M=Modified,D=Development'
                        enum:
                        - A
                        - M
                        - D
                      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_MOD_COL:
                  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  enumValues: A=Active,M=Modified,D=Development'
                        enum:
                        - A
                        - M
                        - D
                      DATA_TYPE:
                        type: string
                        maxLength: 4
                        description: 'Data Type  enumValues: TIMS=Time Field,CURR=Currency Type Field,NUMC=Character String with only Numeric Digits,INT=Integer Type Fields,CHAR=Character String,DEC=Decimal Type fields,DATS=Date Field,UNIT=Unit,QUAN=Quantity Type fields'
                        enum:
                        - TIMS
                        - CURR
                        - NUMC
                        - INT
                        - CHAR
                        - DEC
                        - DATS
                        - UNIT
                        - QUAN
                      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  enumValues: 00='
                        enum:
                        - '00'
                      NUM_SCALE:
                        type: integer
                        format: int64
                        description: 'Number of digits to the right of the decimal point  enumValues: 00='
                        enum:
                        - '00'
                      DATE_PRECISION:
                        type: integer
                        format: int64
                        description: 'Date Precision  enumValues: 00='
                        enum:
                        - '00'
                      CONTENT_TYPE:
                        type: string
                        maxLength: 3
                        description: 'Content Type ID  enumValues: ORE=Order,KEY=Key Field,PBV=Probability Variance,CNT=Continuous,ORD=Ordered,PRB=Probability,WHT=Transaction weight,PBS=Probability Standard Deviation,SQT=Sequence Time,ITM=Item,TRN=Transaction,CYC=Cyclical,GRP=Grouping Attribute,DIZ=Discretized,DST=Discrete'
                        enum:
                        - ORE
                        - KEY
                        - PBV
                        - CNT
                        - ORD
                        - PRB
                        - WHT
                        - PBS
                        - SQT
                        - ITM
                        - TRN
                        - CYC
                        - GRP
                        - DIZ
                        - DST
                      DISTR_TYPE:
                        type: string
                        maxLength: 3
                        description: 'Distribution Type ID  enumValues: POS=Poisson,LOG=Log Normal,TDB=T Distribution,UNI=Uniform,MUN=Mulitnomial,NOR=Normal,BIN=Binomial'
                        enum:
                        - POS
                        - LOG
                        - TDB
                        - UNI
                        - MUN
                        - NOR
                        - BIN
                      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  enumValues: X=TRUE,""=FALSE'
                        enum:
                        - X
                        - ''
              required:
              - I_DS
              - I_SERVICE
      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_COL_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  enumValues: A=Active,M=Modified,D=Development'
                          enum:
                          - A
                          - M
                          - D
                        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_MOD_COL:
                    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  enumValues: A=Active,M=Modified,D=Development'
                          enum:
                          - A
                          - M
                          - D
                        DATA_TYPE:
                          type: string
                          maxLength: 4
                          description: 'Data Type  enumValues: TIMS=Time Field,CURR=Currency Type Field,NUMC=Character String with only Numeric Digits,INT=Integer Type Fields,CHAR=Character String,DEC=Decimal Type fields,DATS=Date Field,UNIT=Unit,QUAN=Quantity Type fields'
                          enum:
                          - TIMS
                          - CURR
                          - NUMC
                          - INT
                          - CHAR
                          - DEC
                          - DATS
                          - UNIT
                          - QUAN
                        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  enumValues: 00='
                          enum:
                          - '00'
                        NUM_SCALE:
                          type: integer
                          format: int64
                          description: 'Number of digits to the right of the decimal point  enumValues: 00='
                          enum:
                          - '00'
                        DATE_PRECISION:
                          type: integer
                          format: int64
                          description: 'Date Precision  enumValues: 00='
                          enum:
                          - '00'
                        CONTENT_TYPE:
                          type: string
                          maxLength: 3
                          description: 'Content Type ID  enumValues: ORE=Order,KEY=Key Field,PBV=Probability Variance,CNT=Continuous,ORD=Ordered,PRB=Probability,WHT=Transaction weight,PBS=Probability Standard Deviation,SQT=Sequence Time,ITM=Item,TRN=Transaction,CYC=Cyclical,GRP=Grouping Attribute,DIZ=Discretized,DST=Discrete'
                          enum:
                          - ORE
                          - KEY
                          - PBV
                          - CNT
                          - ORD
                          - PRB
                          - WHT
                          - PBS
                          - SQT
                          - ITM
                          - TRN
                          - CYC
                          - GRP
                          - DIZ
                          - DST
                        DISTR_TYPE:
                          type: string
                          maxLength: 3
                          description: 'Distribution Type ID  enumValues: POS=Poisson,LOG=Log Normal,TDB=T Distribution,UNI=Uniform,MUN=Mulitnomial,NOR=Normal,BIN=Binomial'
                          enum:
                          - POS
                          - LOG
                          - TDB
                          - UNI
                          - MUN
                          - NOR
                          - BIN
                        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  enumValues: X=TRUE,""=FALSE'
                          enum:
                          - X
                          - ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
