openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_DME_BAPI_GET_MODEL_DETAILS:
    post:
      tags:
      - RS_DME_BAPI
      summary: Get details of a model
      operationId: /rfc/RS_DME_BAPI_GET_MODEL_DETAILS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language ID
                I_MODEL:
                  type: string
                  maxLength: 30
                  description: Analytical Model
                I_OBJVERS:
                  type: string
                  maxLength: 1
                  description: Object version
                E_T_FLD_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
                E_T_FLD_VAL:
                  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
                E_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)
                E_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)
                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
                E_T_TEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJVERS:
                        type: string
                        maxLength: 1
                        description: Object version
                      LANGU:
                        type: string
                        maxLength: 1
                        description: Language Key
                      TXTSH:
                        type: string
                        maxLength: 20
                        description: Short description
                      TXTLG:
                        type: string
                        maxLength: 60
                        description: Long description
                      CHANGE:
                        type: string
                        maxLength: 1
                        description: Changes Flag
              required:
              - I_LANGU
              - I_MODEL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_S_HEADER:
                    type: object
                    properties:
                      MODEL:
                        type: string
                        maxLength: 30
                        description: Model Name
                      OBJVERS:
                        type: string
                        maxLength: 1
                        description: 'Information for shipment of models  enumValues: A=Active,M=Modified,D=Development'
                        enum:
                        - A
                        - M
                        - D
                      SERVICE_ID:
                        type: string
                        maxLength: 30
                        description: Analytical Method Name
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'Model Type  enumValues: T=Training,A=All,E=Evaluation,P=Prediction'
                        enum:
                        - T
                        - A
                        - E
                        - P
                      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
                      OBJSTAT:
                        type: string
                        maxLength: 3
                        description: 'Object Status  enumValues: OFF=Switched off,INA=Inactive, not executable,ACT=Active, executable,PRO=Productive'
                        enum:
                        - 'OFF'
                        - INA
                        - ACT
                        - PRO
                      CONTREL:
                        type: string
                        maxLength: 6
                        description: Content release
                      CONTTIMESTMP:
                        type: integer
                        format: int64
                        description: 'Content time stamp: Last modification to the object by SAP'
                      OWNER:
                        type: string
                        maxLength: 12
                        description: Owner (Person Responsible)
                      BWAPPL:
                        type: string
                        maxLength: 10
                        description: BW Application (Namespace)
                      ACTIVFL:
                        type: string
                        maxLength: 1
                        description: 'Active and revised version do not agree  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                  E_T_FLD_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
                  E_T_FLD_VAL:
                    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
                  E_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)
                  E_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)
                  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
                  E_T_TEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJVERS:
                          type: string
                          maxLength: 1
                          description: Object version
                        LANGU:
                          type: string
                          maxLength: 1
                          description: Language Key
                        TXTSH:
                          type: string
                          maxLength: 20
                          description: Short description
                        TXTLG:
                          type: string
                          maxLength: 60
                          description: Long description
                        CHANGE:
                          type: string
                          maxLength: 1
                          description: Changes Flag
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
