openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_ARW_COMMIT_OPTIMIZE:
    post:
      tags:
      - TREX_ARW_INDEX
      summary: prepare
      operationId: /rfc/TREX_ARW_COMMIT_OPTIMIZE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                KEEP_LUW:
                  type: string
                  format: byte
                  description: 'Only for debugging: keep logical unit of work'
                RFC_DESTINATION:
                  type: string
                  format: byte
                  description: RFC Destination
                COMPONENT_RUNTIME:
                  type: array
                  items:
                    type: object
                    properties:
                      RFC_SERVER_TIME:
                        type: integer
                        format: int64
                        description: ''
                      TREX_CLIENT_TIME:
                        type: integer
                        format: int64
                        description: ''
                      TREX_KERNEL_TIME:
                        type: integer
                        format: int64
                        description: ''
                      ABAP_RFC_TIME:
                        type: integer
                        format: int64
                        description: ''
              required:
              - INDEX_ID
              - KEEP_LUW
              - RFC_DESTINATION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  COMPONENT_RUNTIME:
                    type: array
                    items:
                      type: object
                      properties:
                        RFC_SERVER_TIME:
                          type: integer
                          format: int64
                          description: ''
                        TREX_CLIENT_TIME:
                          type: integer
                          format: int64
                          description: ''
                        TREX_KERNEL_TIME:
                          type: integer
                          format: int64
                          description: ''
                        ABAP_RFC_TIME:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
