openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_SEARCH_SIMILAR_DOCS:
    post:
      tags:
      - SRQU
      operationId: /rfc/SRET_SEARCH_SIMILAR_DOCS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CATID:
                  type: string
                  maxLength: 32
                  description: Index category ID
                FROM:
                  type: integer
                  format: int64
                LAISO:
                  type: string
                  maxLength: 2
                  description: Language According to ISO 639
                LANGU:
                  type: string
                  maxLength: 1
                TO:
                  type: integer
                  format: int64
                BDOCLISTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      REFERENCE:
                        type: integer
                        format: int64
                        description: Reference of a binary data stream line to a document
                      CONTFLAG:
                        type: string
                        maxLength: 1
                        description: Document content ID
                      BINLEN:
                        type: integer
                        format: int64
                        description: Length of a binary document
                      BROW:
                        type: string
                        format: byte
                        description: Binary data stream
                DOCLISTTAB:
                  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
                        maxLength: 1
                        description: Document content ID
                      TROW:
                        type: string
                        maxLength: 1022
                        description: Text data stream (line)
                RESULTATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        maxLength: 25
                        description: Document attribute name of an index category
                      MULTATRCNT:
                        type: integer
                        format: int64
                        description: Multi-document Attribute Counter
                      ATTRTYPE:
                        type: string
                        maxLength: 1
                        description: Document Attribute Type
                      VALUE1:
                        type: string
                        maxLength: 64
                        description: Value of a Document Attribute
                      VALUE2:
                        type: string
                        maxLength: 64
                        description: Value of a Document Attribute
                      OPERATOR:
                        type: string
                        maxLength: 5
                        description: Operator
                      DOCREFER:
                        type: integer
                        format: int64
                        description: Reference of a Document Attribute to a Document
                RESULTDOCTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      DOCID:
                        type: string
                        maxLength: 64
                        description: Document ID
                      RANKV:
                        type: integer
                        format: int64
                        description: Rank in the hit list
                      CATID:
                        type: string
                        maxLength: 32
                        description: Index category identification
                      LANGU:
                        type: string
                        maxLength: 2
                        description: Language According to ISO 639 (2 Character)
                      COUNTER:
                        type: integer
                        format: int64
                        description: Document counter
              required:
              - CATID
              - FROM
              - TO
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMOFSIMDOCS:
                    type: integer
                    format: int64
                  RCODE:
                    type: string
                    maxLength: 4
                  BDOCLISTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        REFERENCE:
                          type: integer
                          format: int64
                          description: Reference of a binary data stream line to a document
                        CONTFLAG:
                          type: string
                          maxLength: 1
                          description: Document content ID
                        BINLEN:
                          type: integer
                          format: int64
                          description: Length of a binary document
                        BROW:
                          type: string
                          format: byte
                          description: Binary data stream
                  DOCLISTTAB:
                    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
                          maxLength: 1
                          description: Document content ID
                        TROW:
                          type: string
                          maxLength: 1022
                          description: Text data stream (line)
                  RESULTATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          maxLength: 25
                          description: Document attribute name of an index category
                        MULTATRCNT:
                          type: integer
                          format: int64
                          description: Multi-document Attribute Counter
                        ATTRTYPE:
                          type: string
                          maxLength: 1
                          description: Document Attribute Type
                        VALUE1:
                          type: string
                          maxLength: 64
                          description: Value of a Document Attribute
                        VALUE2:
                          type: string
                          maxLength: 64
                          description: Value of a Document Attribute
                        OPERATOR:
                          type: string
                          maxLength: 5
                          description: Operator
                        DOCREFER:
                          type: integer
                          format: int64
                          description: Reference of a Document Attribute to a Document
                  RESULTDOCTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        DOCID:
                          type: string
                          maxLength: 64
                          description: Document ID
                        RANKV:
                          type: integer
                          format: int64
                          description: Rank in the hit list
                        CATID:
                          type: string
                          maxLength: 32
                          description: Index category identification
                        LANGU:
                          type: string
                          maxLength: 2
                          description: Language According to ISO 639 (2 Character)
                        COUNTER:
                          type: integer
                          format: int64
                          description: Document counter
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
