openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_SEARCH_SIMILAR_TERMS:
    post:
      tags:
      - TREX_RFC_TM
      summary: Search for similar terms
      operationId: /rfc/TREX_RFC_SEARCH_SIMILAR_TERMS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DOC_SEL_QUERY:
                  type: string
                  format: byte
                  description: DocumentSelectionQuery
                INDEXSERVER_LOCATION:
                  type: string
                  format: byte
                  description: Host:Port
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                LANGUAGE:
                  type: string
                  format: byte
                  description: Language
                MAX_RESULTS:
                  type: integer
                  format: int64
                  description: Maximum number of results
                RES_TERM_PAT:
                  type: string
                  format: byte
                  description: Result Term Pattern
                STAGING:
                  type: integer
                  format: int64
                  description: '0: false, 1: true'
                RESULT_CONTAINER:
                  type: array
                  items:
                    type: object
                    properties:
                      CONT_KEY:
                        type: string
                        format: byte
                        description: ''
                      CONT_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      WEIGHT:
                        type: integer
                        format: int64
                        description: ''
                      ERROR_CODE:
                        type: integer
                        format: int64
                        description: ''
                      ERROR_TEXT:
                        type: string
                        format: byte
                        description: ''
                RESULT_ELEM:
                  type: array
                  items:
                    type: object
                    properties:
                      CONT_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      NAME:
                        type: string
                        format: byte
                        description: ''
                      RANK_VALUE:
                        type: integer
                        format: int64
                        description: ''
                      CLASSI_TYPE:
                        type: integer
                        format: int64
                        description: ''
                      ELEM_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                RESULT_PROPERTY:
                  type: array
                  items:
                    type: object
                    properties:
                      CONT_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      NAME:
                        type: string
                        format: byte
                        description: ''
                      RANK_VALUE:
                        type: integer
                        format: int64
                        description: ''
                      CLASSI_TYPE:
                        type: integer
                        format: int64
                        description: ''
                      ELEM_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                SEARCH_TERMS:
                  type: array
                  items:
                    type: object
                    properties:
                      TERM_NAME:
                        type: string
                        format: byte
                        description: ''
                      WEIGHT:
                        type: integer
                        format: int64
                        description: ''
              required:
              - INDEX_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Returncode
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Returntext
                  RESULT_CONTAINER:
                    type: array
                    items:
                      type: object
                      properties:
                        CONT_KEY:
                          type: string
                          format: byte
                          description: ''
                        CONT_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        WEIGHT:
                          type: integer
                          format: int64
                          description: ''
                        ERROR_CODE:
                          type: integer
                          format: int64
                          description: ''
                        ERROR_TEXT:
                          type: string
                          format: byte
                          description: ''
                  RESULT_ELEM:
                    type: array
                    items:
                      type: object
                      properties:
                        CONT_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        NAME:
                          type: string
                          format: byte
                          description: ''
                        RANK_VALUE:
                          type: integer
                          format: int64
                          description: ''
                        CLASSI_TYPE:
                          type: integer
                          format: int64
                          description: ''
                        ELEM_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  RESULT_PROPERTY:
                    type: array
                    items:
                      type: object
                      properties:
                        CONT_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        NAME:
                          type: string
                          format: byte
                          description: ''
                        RANK_VALUE:
                          type: integer
                          format: int64
                          description: ''
                        CLASSI_TYPE:
                          type: integer
                          format: int64
                          description: ''
                        ELEM_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  SEARCH_TERMS:
                    type: array
                    items:
                      type: object
                      properties:
                        TERM_NAME:
                          type: string
                          format: byte
                          description: ''
                        WEIGHT:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
