openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_SEARCH_TABLE:
    post:
      tags:
      - TREX_RFC_TM
      summary: Search
      operationId: /rfc/TREX_RFC_SEARCH_TABLE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BIG_ENDIAN:
                  type: integer
                  format: int64
                  description: '0: false, 1: true'
                COUNT_ONLY:
                  type: string
                  format: byte
                  description: 'X: result documents are only counted'
                INDEXSERVER_LOCATION:
                  type: string
                  format: byte
                  description: Host:Port
                REQUEST_FLAGS:
                  type: integer
                  format: int64
                  description: 512 = table rank values
                RESULT_FROM:
                  type: integer
                  format: int64
                  description: from
                RESULT_TO:
                  type: integer
                  format: int64
                  description: to
                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
                        format: byte
                        description: Fieldname in aggregation result (ETDATA)
                      FIELD_TYPE:
                        type: string
                        format: byte
                        description: ABAP Type of field in aggregation result
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: Attribute name
                      IGNORE_COLUMN:
                        type: string
                        format: byte
                        description: 'X: This column is ignored (no indexing)'
                INDEX_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      INDEX_ID:
                        type: string
                        format: byte
                        description: ''
                      LANGU:
                        type: string
                        format: byte
                        description: ''
                QUERY_ENTRY:
                  type: array
                  items:
                    type: object
                    properties:
                      LOCATION:
                        type: string
                        format: byte
                        description: Attribute Name
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      VALUE2:
                        type: string
                        format: byte
                        description: ''
                      ROWTYPE:
                        type: string
                        format: byte
                        description: ''
                      OPERATOR:
                        type: string
                        format: byte
                        description: ''
                      CONTENT_TYPE:
                        type: string
                        format: byte
                        description: ''
                      TERM_ACTION:
                        type: string
                        format: byte
                        description: ''
                      TERM_WEIGHT:
                        type: integer
                        format: int64
                        description: ''
                      NEAR_WIDTH:
                        type: integer
                        format: int64
                        description: ''
                      NEAR_ORDER:
                        type: integer
                        format: int64
                        description: ''
                      FUZZY_SIMILARITY:
                        type: integer
                        format: int64
                        description: ''
                      RANK_METHOD:
                        type: integer
                        format: int64
                        description: ''
                      SEARCH_FLAG:
                        type: integer
                        format: int64
                        description: ''
                      QUERY_COUNT:
                        type: integer
                        format: int64
                        description: ''
                      NODE_COUNT:
                        type: integer
                        format: int64
                        description: ''
                REQ_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
                SORT_ATTRIBUTES:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: Attribute name
                      SORT:
                        type: integer
                        format: int64
                        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  COMPONENT_RUNTIME:
                    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: ''
                  INDEX_SIZE:
                    type: integer
                    format: int64
                    description: Index size
                  NO_OF_ALL_HITS:
                    type: integer
                    format: int64
                    description: Number of all Hits in Index
                  NO_OF_HITS:
                    type: integer
                    format: int64
                    description: Number of Hits
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return text
                  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
                          format: byte
                          description: Fieldname in aggregation result (ETDATA)
                        FIELD_TYPE:
                          type: string
                          format: byte
                          description: ABAP Type of field in aggregation result
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: Attribute name
                        IGNORE_COLUMN:
                          type: string
                          format: byte
                          description: 'X: This column is ignored (no indexing)'
                  INDEX_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        INDEX_ID:
                          type: string
                          format: byte
                          description: ''
                        LANGU:
                          type: string
                          format: byte
                          description: ''
                  QUERY_ENTRY:
                    type: array
                    items:
                      type: object
                      properties:
                        LOCATION:
                          type: string
                          format: byte
                          description: Attribute Name
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        VALUE2:
                          type: string
                          format: byte
                          description: ''
                        ROWTYPE:
                          type: string
                          format: byte
                          description: ''
                        OPERATOR:
                          type: string
                          format: byte
                          description: ''
                        CONTENT_TYPE:
                          type: string
                          format: byte
                          description: ''
                        TERM_ACTION:
                          type: string
                          format: byte
                          description: ''
                        TERM_WEIGHT:
                          type: integer
                          format: int64
                          description: ''
                        NEAR_WIDTH:
                          type: integer
                          format: int64
                          description: ''
                        NEAR_ORDER:
                          type: integer
                          format: int64
                          description: ''
                        FUZZY_SIMILARITY:
                          type: integer
                          format: int64
                          description: ''
                        RANK_METHOD:
                          type: integer
                          format: int64
                          description: ''
                        SEARCH_FLAG:
                          type: integer
                          format: int64
                          description: ''
                        QUERY_COUNT:
                          type: integer
                          format: int64
                          description: ''
                        NODE_COUNT:
                          type: integer
                          format: int64
                          description: ''
                  REQ_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
                  SORT_ATTRIBUTES:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: Attribute name
                        SORT:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
