openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_DME_MCO_SAP_PRED_RESULT_GET:
    post:
      tags:
      - RS_DME_MP_CONSUMER_OP
      summary: Get Prediction results
      operationId: /rfc/RS_DME_MCO_SAP_PRED_RESULT_GET
      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_MODEL_NAME:
                  type: string
                  maxLength: 30
                  description: Analytical Model
                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
              required:
              - I_DS
              - I_MODEL_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_KEYTAB:
                    type: string
                    maxLength: 30
                    description: Data Store
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
