openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_C_SEARCH_SIMILAR_DOCS:
    post:
      tags:
      - SRQU
      operationId: /rfc/SRET_C_SEARCH_SIMILAR_DOCS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CODEPAGE:
                  type: string
                  format: byte
                  description: Code Page
                FROM:
                  type: integer
                  format: int64
                SEARCHENG:
                  type: string
                  format: byte
                  description: Search engine
                TO:
                  type: integer
                  format: int64
                BDOCLISTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      REFERENCE:
                        type: integer
                        format: int64
                        description: Reference of a text data stream line to a document
                      CONTFLAG:
                        type: string
                        format: byte
                        description: Content Flag
                      BINLEN:
                        type: integer
                        format: int64
                        description: Length of a binary document
                      BROW:
                        type: string
                        format: byte
                        description: Binary data stream
                IDXSTORAGETAB:
                  type: array
                  items:
                    type: object
                    properties:
                      IDSTORID:
                        type: string
                        format: byte
                        description: Logical index key (hexadecimal)
                      LANGU:
                        type: string
                        format: byte
                        description: Language Acc. to ISO 639 - for RFC Type RAW
                      STATUSID:
                        type: integer
                        format: int64
                        description: Return code
                      COUNTER:
                        type: integer
                        format: int64
                        description: IndexStorageID counter (Index)
                RESULTATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        format: byte
                        description: Name of a Document Attribute
                      MULTATRCNT:
                        type: integer
                        format: int64
                        description: Multi-document Attribute Counter
                      ATTRTYPE:
                        type: string
                        format: byte
                        description: Document attribute type (binary representation)
                      VALUE1:
                        type: string
                        format: byte
                        description: Value of a document attribute (hexadecimal representation)
                      VALUE2:
                        type: string
                        format: byte
                        description: Value of a document attribute (hexadecimal representation)
                      OPERATOR:
                        type: string
                        format: byte
                        description: Operator (hexadecimal representation)
                      DOCREFER:
                        type: integer
                        format: int64
                        description: Reference of a Document Attribute to a Document
                RESULTDOCTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCID:
                        type: string
                        format: byte
                        description: Document key type RAW (hexadecimal representation)
                      RANKV:
                        type: integer
                        format: int64
                        description: Rank in the hit list
                      IDSTORID:
                        type: string
                        format: byte
                        description: Logical index key (hexadecimal)
                      LANGU:
                        type: string
                        format: byte
                        description: Language Acc. to ISO 639 - for RFC Type RAW
                      COUNTER:
                        type: integer
                        format: int64
                        description: Document counter
                TDOCLISTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      REFERENCE:
                        type: integer
                        format: int64
                        description: Reference of a text data stream line to a document
                      CONTFLAG:
                        type: string
                        format: byte
                        description: Content Flag
                      TROW:
                        type: string
                        format: byte
                        description: Text as binary data stream (hexadecimal representation)
              required:
              - CODEPAGE
              - FROM
              - SEARCHENG
              - TO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMOFSIMDOCS:
                    type: integer
                    format: int64
                  RCODE:
                    type: string
                    maxLength: 4
                    description: Return Code
                  BDOCLISTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        REFERENCE:
                          type: integer
                          format: int64
                          description: Reference of a text data stream line to a document
                        CONTFLAG:
                          type: string
                          format: byte
                          description: Content Flag
                        BINLEN:
                          type: integer
                          format: int64
                          description: Length of a binary document
                        BROW:
                          type: string
                          format: byte
                          description: Binary data stream
                  IDXSTORAGETAB:
                    type: array
                    items:
                      type: object
                      properties:
                        IDSTORID:
                          type: string
                          format: byte
                          description: Logical index key (hexadecimal)
                        LANGU:
                          type: string
                          format: byte
                          description: Language Acc. to ISO 639 - for RFC Type RAW
                        STATUSID:
                          type: integer
                          format: int64
                          description: Return code
                        COUNTER:
                          type: integer
                          format: int64
                          description: IndexStorageID counter (Index)
                  RESULTATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          format: byte
                          description: Name of a Document Attribute
                        MULTATRCNT:
                          type: integer
                          format: int64
                          description: Multi-document Attribute Counter
                        ATTRTYPE:
                          type: string
                          format: byte
                          description: Document attribute type (binary representation)
                        VALUE1:
                          type: string
                          format: byte
                          description: Value of a document attribute (hexadecimal representation)
                        VALUE2:
                          type: string
                          format: byte
                          description: Value of a document attribute (hexadecimal representation)
                        OPERATOR:
                          type: string
                          format: byte
                          description: Operator (hexadecimal representation)
                        DOCREFER:
                          type: integer
                          format: int64
                          description: Reference of a Document Attribute to a Document
                  RESULTDOCTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCID:
                          type: string
                          format: byte
                          description: Document key type RAW (hexadecimal representation)
                        RANKV:
                          type: integer
                          format: int64
                          description: Rank in the hit list
                        IDSTORID:
                          type: string
                          format: byte
                          description: Logical index key (hexadecimal)
                        LANGU:
                          type: string
                          format: byte
                          description: Language Acc. to ISO 639 - for RFC Type RAW
                        COUNTER:
                          type: integer
                          format: int64
                          description: Document counter
                  TDOCLISTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        REFERENCE:
                          type: integer
                          format: int64
                          description: Reference of a text data stream line to a document
                        CONTFLAG:
                          type: string
                          format: byte
                          description: Content Flag
                        TROW:
                          type: string
                          format: byte
                          description: Text as binary data stream (hexadecimal representation)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
