openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_C_CLASSIFY_DOCS:
    post:
      tags:
      - SRQU
      operationId: /rfc/SRET_C_CLASSIFY_DOCS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CLASSHIERARCHY:
                  type: string
                  format: byte
                CMETHOD:
                  type: string
                  format: byte
                CODEPAGE:
                  type: string
                  format: byte
                  description: Code page for attributes
                IDXSTORAGEID:
                  type: string
                  format: byte
                  description: Logical index key (hexadecimal)
                MAXCLASS:
                  type: integer
                  format: int64
                  description: Number of Classes at Classification
                SEARCHENG:
                  type: string
                  format: byte
                  description: Search Engine (Hexadeximal Equivalent)
                THRESHOLD:
                  type: integer
                  format: int64
                  description: Error threshhold
                BDOCLISTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      REFERENCE:
                        type: integer
                        format: int64
                        description: Reference of a binary data stream line to a document
                      CONTTYPE:
                        type: string
                        format: byte
                        description: 2 Character RAW Flag
                      BINLEN:
                        type: integer
                        format: int64
                        description: Length of a binary document
                      BROW:
                        type: string
                        format: byte
                        description: Binary data stream
                CLASSLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASSNAME:
                        type: string
                        format: byte
                        description: Class Name in Hexadecimal Form
                      RANKVAL:
                        type: integer
                        format: int64
                        description: Rank in the hit list
                TDOCLISTTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      REFERENCE:
                        type: integer
                        format: int64
                        description: Reference of a text data stream line to a document
                      CONTTYPE:
                        type: string
                        format: byte
                        description: 2 Character RAW Flag
                      TROW:
                        type: string
                        format: byte
                        description: Text as binary data stream (hexadecimal representation)
              required:
              - CLASSHIERARCHY
              - CMETHOD
              - CODEPAGE
              - IDXSTORAGEID
              - MAXCLASS
              - SEARCHENG
              - THRESHOLD
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMOFCLASSES:
                    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
                        CONTTYPE:
                          type: string
                          format: byte
                          description: 2 Character RAW Flag
                        BINLEN:
                          type: integer
                          format: int64
                          description: Length of a binary document
                        BROW:
                          type: string
                          format: byte
                          description: Binary data stream
                  CLASSLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASSNAME:
                          type: string
                          format: byte
                          description: Class Name in Hexadecimal Form
                        RANKVAL:
                          type: integer
                          format: int64
                          description: Rank in the hit list
                  TDOCLISTTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        REFERENCE:
                          type: integer
                          format: int64
                          description: Reference of a text data stream line to a document
                        CONTTYPE:
                          type: string
                          format: byte
                          description: 2 Character RAW Flag
                        TROW:
                          type: string
                          format: byte
                          description: Text as binary data stream (hexadecimal representation)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
