openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_INDEX_STORAGE_SEARCHING:
    post:
      tags:
      - SRQU
      operationId: /rfc/SRET_INDEX_STORAGE_SEARCHING
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CODEPAGE:
                  type: string
                  format: byte
                  description: Search engine
                SEARCHENG:
                  type: string
                  format: byte
                  description: Search engine
                DOCATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTRNAME:
                        type: string
                        format: byte
                        description: Name of a Document Attribute
                      ATTRTYPE:
                        type: string
                        format: byte
                        description: Document attribute type (binary representation)
                      CLASS_FLAG:
                        type: string
                        format: byte
                        description: Document attribute type (binary representation)
                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)
                QUERYPARAMTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        format: byte
                        description: Attribute name for hexadecimal representation
                      VALUE1:
                        type: string
                        format: byte
                        description: Attribute Value for Hexadecimal Representation
                      VALUE2:
                        type: string
                        format: byte
                        description: Attribute Value for Hexadecimal Representation
                      OPERATOR:
                        type: string
                        format: byte
                        description: Operator (hexadecimal representation)
                QUERYTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      SECOUNT:
                        type: integer
                        format: int64
                        description: Search Term Counter
                      LOCATION:
                        type: string
                        format: byte
                        description: Name of a Document Attribute
                      VALUE1:
                        type: string
                        format: byte
                        description: Value of a search attribute, term or operator (hex)
                      VALUE2:
                        type: string
                        format: byte
                        description: Value of a search attribute, term or operator (hex)
                      OPERATOR:
                        type: string
                        format: byte
                        description: Operator (hexadecimal representation)
                      ROWTYPE:
                        type: string
                        format: byte
                        description: Line Type of a Search Request (Hexadecimal Representation)
                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
                TERMATTRTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        format: byte
                        description: Attribute name for hexadecimal representation
                      VALUE1:
                        type: string
                        format: byte
                        description: Attribute Value for Hexadecimal Representation
                      VALUE2:
                        type: string
                        format: byte
                        description: Attribute Value for Hexadecimal Representation
                      OPERATOR:
                        type: string
                        format: byte
                        description: Operator (hexadecimal representation)
                      QTREFER:
                        type: integer
                        format: int64
                        description: Assignment of term attribute to search term
              required:
              - CODEPAGE
              - SEARCHENG
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMOFHITS:
                    type: integer
                    format: int64
                  RCODE:
                    type: string
                    maxLength: 4
                    description: Return Code
                  DOCATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTRNAME:
                          type: string
                          format: byte
                          description: Name of a Document Attribute
                        ATTRTYPE:
                          type: string
                          format: byte
                          description: Document attribute type (binary representation)
                        CLASS_FLAG:
                          type: string
                          format: byte
                          description: Document attribute type (binary representation)
                  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)
                  QUERYPARAMTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          format: byte
                          description: Attribute name for hexadecimal representation
                        VALUE1:
                          type: string
                          format: byte
                          description: Attribute Value for Hexadecimal Representation
                        VALUE2:
                          type: string
                          format: byte
                          description: Attribute Value for Hexadecimal Representation
                        OPERATOR:
                          type: string
                          format: byte
                          description: Operator (hexadecimal representation)
                  QUERYTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        SECOUNT:
                          type: integer
                          format: int64
                          description: Search Term Counter
                        LOCATION:
                          type: string
                          format: byte
                          description: Name of a Document Attribute
                        VALUE1:
                          type: string
                          format: byte
                          description: Value of a search attribute, term or operator (hex)
                        VALUE2:
                          type: string
                          format: byte
                          description: Value of a search attribute, term or operator (hex)
                        OPERATOR:
                          type: string
                          format: byte
                          description: Operator (hexadecimal representation)
                        ROWTYPE:
                          type: string
                          format: byte
                          description: Line Type of a Search Request (Hexadecimal Representation)
                  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
                  TERMATTRTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          format: byte
                          description: Attribute name for hexadecimal representation
                        VALUE1:
                          type: string
                          format: byte
                          description: Attribute Value for Hexadecimal Representation
                        VALUE2:
                          type: string
                          format: byte
                          description: Attribute Value for Hexadecimal Representation
                        OPERATOR:
                          type: string
                          format: byte
                          description: Operator (hexadecimal representation)
                        QTREFER:
                          type: integer
                          format: int64
                          description: Assignment of term attribute to search term
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
