openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/COM_SE_INDEXER:
    post:
      tags:
      - COM_SE_INDEXING
      summary: Read objects and transfer them to the search engine (in parallel tasks)
      operationId: /rfc/COM_SE_INDEXER
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_ATTRIBUTE_NAMES:
                  type: array
                  items:
                    type: object
                    properties:
                      ORDERING_NUMBER:
                        type: integer
                        format: int32
                        description: Status Number on Selection Screen
                      ATTRIBUTE_NAME:
                        type: string
                        maxLength: 64
                        description: Attribute name
                      ATTRIBUTE_TYPE:
                        type: string
                        maxLength: 1
                        description: Attribute type
                      DIGITS_BEFORE:
                        type: integer
                        format: int64
                        description: 'Only for type X: Digits before the decimal point'
                      DIGITS_AFTER:
                        type: integer
                        format: int64
                        description: 'Only for type X: Digits behind the decimal point'
                      FREESTYLE_RELEVANT:
                        type: string
                        maxLength: 1
                        description: Attribute is relevant for freestyle search
                      LANGUAGE_DEPENDENT:
                        type: string
                        maxLength: 1
                        description: 'Data element for domain BOOLE: TRUE (=''X'') and FALSE (='' '')'
                      DISPLAY_NAME:
                        type: string
                        maxLength: 40
                        description: Long Field Label
                      ATTRIBUTE_GROUP:
                        type: string
                        maxLength: 64
                        description: Attribute Group
                IT_CHANGEPOINTER:
                  type: array
                  items:
                    type: object
                    properties:
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      CP_ID:
                        type: integer
                        format: int64
                        description: 'SES: Change Pointer ID'
                      TIMESTAMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
                      BUSOBJ:
                        type: string
                        maxLength: 10
                        description: Business Object for Search Engine Service (SES)
                      OBJECT_TYPE:
                        type: string
                        maxLength: 10
                        description: Type of Business Object
                      OBJECT_ID:
                        type: string
                        maxLength: 70
                        description: Internal Object ID (GUID) in Search Engine Service (SES)
                      FOCUS:
                        type: integer
                        format: int32
                        description: 'Focus of Object Change: 1= Attribute Group; 2 = Attribute'
                      ATTR_NAME:
                        type: string
                        maxLength: 64
                        description: Name of Changed Attributes or the Attribute Group
                      UPD_FLAG:
                        type: string
                        maxLength: 1
                        description: 'SES: Update Indicator: I = Insert; U = Update; D = Delete'
                      STATE:
                        type: integer
                        format: int32
                        description: 'Status of Change Pointer: 1 = Initial; 2 = Processed'
                IT_OBJECT_IDS:
                  type: array
                  items:
                    type: string
                    maxLength: 70
                    description: Internal Object ID (GUID) in Search Engine Service (SES)
                IT_OBJ_IDS_DELETE:
                  type: array
                  items:
                    type: string
                    maxLength: 70
                    description: Internal Object ID (GUID) in Search Engine Service (SES)
                IV_BUSOBJ:
                  type: string
                  maxLength: 10
                  description: Business Object of IT_OBJECT_IDS
                IV_FEED_INDEX:
                  type: string
                  default: X
                  maxLength: 1
                  description: X = Feed Index; ' ' = Only Read the Objects (Test Mode)
                IV_INDEX_ID:
                  type: string
                  maxLength: 64
                  description: Index ID in the Search Engine
                IV_LANGUAGE:
                  type: string
                  maxLength: 2
                  description: ISO 639 Language, if only this Language is to be indexed
                IV_LET_BROKEN_LINKS_SURVIVE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: X = Let Broken Links Survive; ' ' = Delete Broken Links fom Index
                IV_MULTILANGUAGE:
                  type: string
                  default: X
                  maxLength: 1
                  description: X = Index the Objects in all available Languages
                IV_OBJECT_TYPE:
                  type: string
                  maxLength: 10
                  description: Type of Business Object
                IV_RFC_DESTINATION:
                  type: string
                  maxLength: 32
                  description: RFC Destination to the Search Engine
              required:
              - IV_BUSOBJ
              - IV_INDEX_ID
              - IV_OBJECT_TYPE
              - IV_RFC_DESTINATION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_BROKEN_LINKS:
                    type: array
                    items:
                      type: string
                      maxLength: 70
                      description: Internal Object ID (GUID) in Search Engine Service (SES)
                  EV_SE_DEL_RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return Code for Deletion in the Search Engine
                  EV_SE_DEL_RETURN_TEXT:
                    type: string
                    maxLength: 200
                    description: Return Text for Deletion in the Search Engine
                  EV_SE_DEL_RUNTIME:
                    type: object
                    properties:
                      RFC_SERVER_TIME:
                        type: integer
                        format: int32
                        description: ''
                      TREX_CLIENT_TIME:
                        type: integer
                        format: int32
                        description: ''
                      TREX_KERNEL_TIME:
                        type: integer
                        format: int32
                        description: ''
                      ABAP_RFC_TIME:
                        type: integer
                        format: int32
                        description: ''
                  EV_SE_IDX_RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return Code for Indexing in the Search Engine
                  EV_SE_IDX_RETURN_TEXT:
                    type: string
                    maxLength: 200
                    description: Return Text for Indexing in the Search Engine
                  EV_SE_IDX_RUNTIME:
                    type: object
                    properties:
                      RFC_SERVER_TIME:
                        type: integer
                        format: int32
                        description: ''
                      TREX_CLIENT_TIME:
                        type: integer
                        format: int32
                        description: ''
                      TREX_KERNEL_TIME:
                        type: integer
                        format: int32
                        description: ''
                      ABAP_RFC_TIME:
                        type: integer
                        format: int32
                        description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
