openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAF_SE_JOB_INDEX_KBS:
    post:
      tags:
      - SAF_SE_JOB
      summary: 'SAF: Index knowledge entities'
      operationId: /rfc/SAF_SE_JOB_INDEX_KBS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IS_CMP_SETTINGS:
                  type: object
                  properties:
                    CLIENT:
                      type: string
                      maxLength: 3
                      description: Client
                    KB_NAME:
                      type: string
                      maxLength: 30
                      description: Name of Knowledge Base
                    LANG:
                      type: string
                      maxLength: 1
                      description: Language Key
                    AFFIX:
                      type: string
                      maxLength: 10
                      description: Suffix for Search Index Name
                    SE_NAME:
                      type: string
                      maxLength: 30
                      description: 'SAF: Name of search engine'
                    CLUSTERING:
                      type: string
                      maxLength: 1
                      description: 'Execute Clustering Service  enumValues: X=true,-=false,""=unknown'
                      enum:
                      - X
                      - '-'
                      - ''
                    USE_QUEUE:
                      type: string
                      maxLength: 1
                      description: 'Use Queue Server  enumValues: X=true,-=false,""=unknown'
                      enum:
                      - X
                      - '-'
                      - ''
                    CLU_NO:
                      type: integer
                      format: int32
                      description: 'SAF: Number of clusters'
                    CLU_THRESHOLD:
                      type: string
                      maxLength: 16
                      description: 'SAF: Cluster threshold for clustering service'
                    CLU_METHOD:
                      type: string
                      maxLength: 30
                      description: 'SAF: Clustering algorithm name  enumValues: KMEANS=K-Means,STAR=Star Clustering'
                      enum:
                      - KMEANS
                      - STAR
                    CLA_NO:
                      type: integer
                      format: int32
                      description: 'SAF: Classification number'
                    CLA_THRESHOLD:
                      type: string
                      maxLength: 16
                      description: 'SAF: Classification threshold'
                    CLA_METHOD:
                      type: string
                      maxLength: 30
                      description: 'SAF: Classification method  enumValues: KNN=K Nearest Neighbor,CENTROID=Centroid Classification,SAPMETHOD=SAP Method'
                      enum:
                      - KNN
                      - CENTROID
                      - SAPMETHOD
                    FEATURE_NO:
                      type: integer
                      format: int32
                      description: Characteristic Feature Number for Clustering
                    ALERT_THRESHOLD:
                      type: string
                      maxLength: 16
                      description: SAF - Alert Threshold
                    ALT_INDEX_NAME:
                      type: string
                      maxLength: 32
                      description: 'SAF: Search index name'
                    BATCH_SIZE:
                      type: string
                      maxLength: 10
                      description: 'SAF: Batch size for indexing'
                IT_ATTR_DEF:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_NAME:
                        type: string
                        maxLength: 255
                        description: 'SAF: Attribute name for knowledge repository'
                      ATTR_TYPE:
                        type: string
                        maxLength: 1
                        description: 'SAF: Attribute type'
                      ATTR_GROUP:
                        type: string
                        maxLength: 64
                        description: 'SAF: Attribute group'
                IT_KB_BO:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      KB_ID:
                        type: string
                        maxLength: 50
                        description: Knowledge Base Entity ID
                      BO_NAME:
                        type: string
                        maxLength: 32
                        description: Business Object Name
                      BO_ID:
                        type: string
                        maxLength: 32
                        description: 'SAF: Business Object ID'
                      CREATED_DATE:
                        type: string
                        format: date
                        description: SAF - Date
                      CREATED_TIME:
                        type: string
                        maxLength: 6
                        description: SAF - Time
                      UPDATED_DATE:
                        type: string
                        format: date
                        description: SAF - Date
                      UPDATED_TIME:
                        type: string
                        maxLength: 6
                        description: SAF - Time
                      RESPONSIBLE_USER:
                        type: string
                        maxLength: 12
                        description: SAF - User
                      DELETED:
                        type: string
                        maxLength: 1
                        description: Flag in Software Agent Framework
                IT_KB_HEADER:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      KB_ID:
                        type: string
                        maxLength: 50
                        description: Knowledge Base Entity ID
                      ACCESS_NO:
                        type: integer
                        format: int32
                        description: SAF - Counter
                      CORRECT_NO:
                        type: integer
                        format: int32
                        description: SAF - Counter
                      ERROR_NO:
                        type: integer
                        format: int32
                        description: SAF - Counter
                      LANG:
                        type: string
                        maxLength: 1
                        description: Language Key
                      LANG_ISO:
                        type: string
                        maxLength: 2
                        description: SAF - Language key according to ISO 639
                      DESCRIPTION:
                        type: string
                        description: SAF - String
                      COMPILED:
                        type: string
                        maxLength: 1
                        description: Flag in Software Agent Framework
                      COMPILE_ACTION:
                        type: string
                        maxLength: 1
                        description: Flag in Software Agent Framework
                      CREATED_DATE:
                        type: string
                        format: date
                        description: SAF - Date
                      CREATED_TIME:
                        type: string
                        maxLength: 6
                        description: SAF - Time
                      UPDATED_DATE:
                        type: string
                        format: date
                        description: SAF - Date
                      UPDATED_TIME:
                        type: string
                        maxLength: 6
                        description: SAF - Time
                      RESPONSIBLE_USER:
                        type: string
                        maxLength: 12
                        description: SAF - User
                      DELETED:
                        type: string
                        maxLength: 1
                        description: Flag in Software Agent Framework
                IV_BUFFER_ID:
                  type: string
                  default: ''
                  maxLength: 100
                  description: Character 100
                IV_DELTA:
                  type: string
                  maxLength: 1
                  description: boolean variable (X=true, -=false, space=unknown)
                IV_INDEX_NAME:
                  type: string
                  maxLength: 32
                  description: 'SAF: Search index name'
                IV_KB_NAME:
                  type: string
                  maxLength: 30
                  description: 'SAF: Name of knowledge base'
                IV_LANGUAGE:
                  type: string
                  maxLength: 1
                  description: Language Key
                IV_RFC_DEST:
                  type: string
                  maxLength: 32
                  description: Logical Destination (Specified in Function Call)
              required:
              - IS_CMP_SETTINGS
              - IT_ATTR_DEF
              - IT_KB_BO
              - IT_KB_HEADER
              - IV_DELTA
              - IV_INDEX_NAME
              - IV_KB_NAME
              - IV_LANGUAGE
              - IV_RFC_DEST
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_RETURN_CODE:
                    type: array
                    items:
                      type: object
                      properties:
                        CODE:
                          type: integer
                          format: int32
                          description: Natural number
                        NAME:
                          type: string
                          description: SAF - String
                        TEXT:
                          type: string
                          description: SAF - String
                  EV_SUCCESS:
                    type: string
                    maxLength: 1
                    description: boolean variable (X=true, -=false, space=unknown)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
