openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSDDTREX_INDEX_TABLE:
    post:
      tags:
      - RSDDTREX
      operationId: /rfc/RSDDTREX_INDEX_TABLE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_COMP_DESCR:
                  type: array
                  items:
                    type: object
                    properties:
                      FIELD_LENGTH:
                        type: integer
                        format: int64
                        description: Field length in character
                      BYTE_LENGTH:
                        type: integer
                        format: int64
                        description: Field length in bytes
                      BYTE_OFFSET:
                        type: integer
                        format: int64
                        description: Offset length in bytes
                      DECIMALS:
                        type: integer
                        format: int64
                        description: ''
                      FIELD_NAME:
                        type: string
                        maxLength: 30
                        description: Field name in ABAP table
                      FIELD_TYPE:
                        type: string
                        maxLength: 1
                        description: Field type in ABAP table
                      ATTR_NAME:
                        type: string
                        maxLength: 64
                        description: Attribute name
                      MULTI_ATTR:
                        type: string
                        maxLength: 1
                        description: 'X: The column must be an internal table for multi-attrs'
                      IGNORE_COLUMN:
                        type: string
                        maxLength: 1
                        description: 'X: The column is ignored (no indexing)'
                      ATTR_TYPE:
                        type: string
                        maxLength: 1
                        description: Attribute type
                I_FUNCNAME:
                  type: string
                  maxLength: 30
                I_IGNORE_LOG_INDEX:
                  type: integer
                  format: int64
                I_INDEX_ID:
                  type: string
                  maxLength: 64
                I_KEEP_LUW:
                  type: string
                  default: ''
                  maxLength: 1
                I_NO_TREX:
                  type: string
                  default: RS_C_FALSE
                  maxLength: 1
                I_RFC_DESTINATION:
                  type: string
                  maxLength: 32
                I_USE_QUEUESERVER:
                  type: string
                  default: X
                  maxLength: 1
                I_XCOMPONENTS:
                  type: string
                  format: byte
                I_XSTRING:
                  type: string
                  format: byte
              required:
              - I_FUNCNAME
              - I_IGNORE_LOG_INDEX
              - I_INDEX_ID
              - I_RFC_DESTINATION
              - I_XSTRING
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_COMPONENT_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: ''
                  E_RETURN_CODE:
                    type: integer
                    format: int32
                  E_RETURN_TEXT:
                    type: string
                    maxLength: 200
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
