openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_DME_MCI_TRAIN:
    post:
      tags:
      - RS_DME_MP_CONSUMER_INT
      summary: Runs the service for training a model
      operationId: /rfc/RS_DME_MCI_TRAIN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_BATCH_JOB:
                  type: object
                  properties:
                    SDLSTRTDT:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                    SDLSTRTTM:
                      type: string
                      maxLength: 6
                      description: Planned start time for background Job
                    LASTSTRTDT:
                      type: string
                      format: date
                      description: Latest Execution Date for a Background Job
                    LASTSTRTTM:
                      type: string
                      maxLength: 6
                      description: Latest Execution Time for Background Job
                    PREDJOB:
                      type: string
                      maxLength: 32
                      description: Name of previous job
                    PREDJOBCNT:
                      type: string
                      maxLength: 8
                      description: Job ID
                    CHECKSTAT:
                      type: string
                      maxLength: 1
                      description: Job status check indicator for subsequent job start
                    EVENTID:
                      type: string
                      maxLength: 32
                      description: Background Processing Event
                    EVENTPARM:
                      type: string
                      maxLength: 64
                      description: Background Event Parameters (Such as, Jobname/Jobcount)
                    STARTDTTYP:
                      type: string
                      maxLength: 1
                      description: Start date type ID
                    PRDMINS:
                      type: integer
                      format: int64
                      description: Duration period (in minutes) for a batch job
                    PRDHOURS:
                      type: integer
                      format: int64
                      description: Duration period (in hours) for a batch job
                    PRDDAYS:
                      type: integer
                      format: int64
                      description: Duration (in days) of DBA action
                    PRDWEEKS:
                      type: integer
                      format: int64
                      description: Duration period (in weeks) for a batch job
                    PRDMONTHS:
                      type: integer
                      format: int64
                      description: Duration period (in months) for a batch job
                    PERIODIC:
                      type: string
                      maxLength: 1
                      description: Periodic jobs indicator ('X')
                    INSTNAME:
                      type: string
                      maxLength: 20
                      description: Server name
                    CALENDARID:
                      type: string
                      maxLength: 2
                      description: Factory calendar ID for background processing
                    EOMCORRECT:
                      type: integer
                      format: int32
                      description: Correction field for calc. job execution (end-of-mth, cal.)
                    CALCORRECT:
                      type: integer
                      format: int32
                      description: Correction field for calc. job execution (end-of-mth, cal.)
                    IMSTRTPOS:
                      type: string
                      maxLength: 1
                      description: Flag indicating whether job can be started immediately
                    PRDBEHAV:
                      type: string
                      maxLength: 1
                      description: Period behavior of jobs on non-workdays
                    WDAYNO:
                      type: integer
                      format: int64
                      description: No. of workday on which a job is to start
                    WDAYCDIR:
                      type: integer
                      format: int64
                      description: Count direction for 'on workday' start date of a job
                    NOTBEFORE:
                      type: string
                      format: date
                      description: Planned Start Date for Background Job
                I_DATA_SRC:
                  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_LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: Language ID
                I_MODEL_NAME:
                  type: string
                  maxLength: 30
                  description: Model Name
                I_SERVICE_NAME:
                  type: string
                  maxLength: 30
                  description: Analytical service Name
                I_USER_ID:
                  type: string
                  default: SY-UNAME
                  maxLength: 12
                  description: User name in user master record
                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_DATA_SRC
              - I_LANGU
              - I_MODEL_NAME
              - I_SERVICE_NAME
              - I_USER_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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
