openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RS_DME_MCO_SAP_AD_RULES_GET:
    post:
      tags:
      - RS_DME_MP_CONSUMER_OP
      summary: Get SAP Association Discovery rules
      operationId: /rfc/RS_DME_MCO_SAP_AD_RULES_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_BATCH:
                  type: string
                  default: F
                  maxLength: 1
                  description: Set of data (first,next,prev,last)
                I_CONF:
                  type: integer
                  format: int64
                  description: Confidence of the association rule
                I_CURR_RULE_NO:
                  type: integer
                  format: int64
                  description: Association rule ID
                I_DEPN_DEPTH:
                  type: integer
                  format: int32
                  description: Maximum no. of depending items
                I_LEAD_DEPTH:
                  type: integer
                  format: int32
                  description: Maximum no. of leading items
                I_LIFT:
                  type: integer
                  format: int64
                  description: Lift of the association rule
                I_MAX_RULES:
                  type: integer
                  format: int32
                  description: Max rules
                I_MODEL_NAME:
                  type: string
                  maxLength: 30
                  description: Model Name
                I_NO_RULES_LAST:
                  type: integer
                  format: int32
                  description: Top N
                I_SUP:
                  type: integer
                  format: int64
                  description: Support of the Itemset
                I_TOPN:
                  type: integer
                  format: int32
                  description: Top N
                E_T_DEPN_DET:
                  type: array
                  items:
                    type: object
                    properties:
                      MODEL_ID:
                        type: string
                        maxLength: 30
                        description: Analytical Model
                      RULE_ID:
                        type: integer
                        format: int64
                        description: Association rule ID
                      ITEM_ID:
                        type: string
                        maxLength: 200
                        description: Item ID
                E_T_LEAD_DET:
                  type: array
                  items:
                    type: object
                    properties:
                      MODEL_ID:
                        type: string
                        maxLength: 30
                        description: Analytical Model
                      RULE_ID:
                        type: integer
                        format: int64
                        description: Association rule ID
                      ITEM_ID:
                        type: string
                        maxLength: 200
                        description: Item ID
                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_RULES:
                  type: array
                  items:
                    type: object
                    properties:
                      RULE_ID:
                        type: integer
                        format: int64
                        description: Association rule ID
                      SUPPORT:
                        type: integer
                        format: int64
                        description: Support of the Itemset
                      CONFIDENCE:
                        type: integer
                        format: int64
                        description: Confidence of the association rule
                      LIFT:
                        type: integer
                        format: int64
                        description: Lift of the association rule
                      LEAD_DEPTH:
                        type: integer
                        format: int32
                        description: 'Maximum no. of leading items  enumValues: 0='
                        enum:
                        - '0'
                      DEPN_DEPTH:
                        type: integer
                        format: int32
                        description: 'Maximum no. of depending items  enumValues: 0='
                        enum:
                        - '0'
                I_T_DEPN_ITEMS:
                  type: array
                  items:
                    type: object
                    properties:
                      ITEM_ID:
                        type: string
                        maxLength: 200
                        description: Item ID
                I_T_LEAD_ITEMS:
                  type: array
                  items:
                    type: object
                    properties:
                      ITEM_ID:
                        type: string
                        maxLength: 200
                        description: Item ID
              required:
              - I_MODEL_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_CURR_RULE_NO:
                    type: integer
                    format: int64
                    description: Association rule ID
                  E_NO_RULES:
                    type: integer
                    format: int32
                    description: No of rules
                  E_T_DEPN_DET:
                    type: array
                    items:
                      type: object
                      properties:
                        MODEL_ID:
                          type: string
                          maxLength: 30
                          description: Analytical Model
                        RULE_ID:
                          type: integer
                          format: int64
                          description: Association rule ID
                        ITEM_ID:
                          type: string
                          maxLength: 200
                          description: Item ID
                  E_T_LEAD_DET:
                    type: array
                    items:
                      type: object
                      properties:
                        MODEL_ID:
                          type: string
                          maxLength: 30
                          description: Analytical Model
                        RULE_ID:
                          type: integer
                          format: int64
                          description: Association rule ID
                        ITEM_ID:
                          type: string
                          maxLength: 200
                          description: Item ID
                  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_RULES:
                    type: array
                    items:
                      type: object
                      properties:
                        RULE_ID:
                          type: integer
                          format: int64
                          description: Association rule ID
                        SUPPORT:
                          type: integer
                          format: int64
                          description: Support of the Itemset
                        CONFIDENCE:
                          type: integer
                          format: int64
                          description: Confidence of the association rule
                        LIFT:
                          type: integer
                          format: int64
                          description: Lift of the association rule
                        LEAD_DEPTH:
                          type: integer
                          format: int32
                          description: 'Maximum no. of leading items  enumValues: 0='
                          enum:
                          - '0'
                        DEPN_DEPTH:
                          type: integer
                          format: int32
                          description: 'Maximum no. of depending items  enumValues: 0='
                          enum:
                          - '0'
                  I_T_DEPN_ITEMS:
                    type: array
                    items:
                      type: object
                      properties:
                        ITEM_ID:
                          type: string
                          maxLength: 200
                          description: Item ID
                  I_T_LEAD_ITEMS:
                    type: array
                    items:
                      type: object
                      properties:
                        ITEM_ID:
                          type: string
                          maxLength: 200
                          description: Item ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
