openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_ARW_GET_DOC_CONTENT:
    post:
      tags:
      - TREX_ARW_TM
      summary: Get the content of document as HTML
      operationId: /rfc/TREX_ARW_GET_DOC_CONTENT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                INDEXSERVER_LOCATION:
                  type: string
                  format: byte
                  description: Host:Port
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                REQUEST_FLAG:
                  type: integer
                  format: int64
                  description: IndexId
                RFC_DESTINATION:
                  type: string
                  format: byte
                  description: RFC Destination
                DOC_CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      CONTENT:
                        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: ''
                      INDEX_ID:
                        type: string
                        format: byte
                        description: ''
                      JOIN_PATH:
                        type: string
                        format: byte
                        description: ''
                      LOC_LANGU:
                        type: string
                        format: byte
                        description: ''
                      QUERY_PART:
                        type: integer
                        format: int64
                        description: ''
                RESULT_DOCS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_STATUS:
                        type: integer
                        format: int64
                        description: ''
                      INDEX_ID:
                        type: string
                        format: byte
                        description: ''
                      RANK_VALUE:
                        type: integer
                        format: int64
                        description: ''
                      DOC_LANGU:
                        type: string
                        format: byte
                        description: ''
                      SEARCH_ENGINE:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                RESULT_DOC_ATTR:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      ATTR_NAME:
                        type: string
                        format: byte
                        description: ''
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      VALUE2:
                        type: string
                        format: byte
                        description: ''
                      ATTR_TYPE:
                        type: string
                        format: byte
                        description: ''
                      ATTR_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      INDEX_ID:
                        type: string
                        format: byte
                        description: ''
                RESULT_DOC_CONTENT:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      CONTENT:
                        type: string
                        format: byte
                        description: ''
                SEARCH_DOCS:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_KEY:
                        type: string
                        format: byte
                        description: ''
                      DOC_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      DOC_GROUP:
                        type: string
                        format: byte
                        description: ''
                      DOC_LANGU:
                        type: string
                        format: byte
                        description: ''
                      DOC_TYPE:
                        type: string
                        format: byte
                        description: ''
              required:
              - INDEXSERVER_LOCATION
              - INDEX_ID
              - REQUEST_FLAG
              - 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
                  DOC_CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        CONTENT:
                          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: ''
                        INDEX_ID:
                          type: string
                          format: byte
                          description: ''
                        JOIN_PATH:
                          type: string
                          format: byte
                          description: ''
                        LOC_LANGU:
                          type: string
                          format: byte
                          description: ''
                        QUERY_PART:
                          type: integer
                          format: int64
                          description: ''
                  RESULT_DOCS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_STATUS:
                          type: integer
                          format: int64
                          description: ''
                        INDEX_ID:
                          type: string
                          format: byte
                          description: ''
                        RANK_VALUE:
                          type: integer
                          format: int64
                          description: ''
                        DOC_LANGU:
                          type: string
                          format: byte
                          description: ''
                        SEARCH_ENGINE:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                  RESULT_DOC_ATTR:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        ATTR_NAME:
                          type: string
                          format: byte
                          description: ''
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        VALUE2:
                          type: string
                          format: byte
                          description: ''
                        ATTR_TYPE:
                          type: string
                          format: byte
                          description: ''
                        ATTR_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        INDEX_ID:
                          type: string
                          format: byte
                          description: ''
                  RESULT_DOC_CONTENT:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        CONTENT:
                          type: string
                          format: byte
                          description: ''
                  SEARCH_DOCS:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_KEY:
                          type: string
                          format: byte
                          description: ''
                        DOC_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        DOC_GROUP:
                          type: string
                          format: byte
                          description: ''
                        DOC_LANGU:
                          type: string
                          format: byte
                          description: ''
                        DOC_TYPE:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
