openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SRET_CLASSIFY_DOCS:
    post:
      tags:
      - SRQU
      operationId: /rfc/SRET_CLASSIFY_DOCS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CATID:
                  type: string
                  maxLength: 32
                  description: Key of index category
                CLASSHIERARCHY:
                  type: string
                  maxLength: 25
                LAISO:
                  type: string
                  maxLength: 2
                  description: Language According to ISO 639
                LANGU:
                  type: string
                  maxLength: 1
                MAXCLASS:
                  type: integer
                  format: int64
                METHOD:
                  type: string
                  maxLength: 12
                THRESHOLD:
                  type: integer
                  format: int64
                  description: Error threshhold
                BDOCTAB:
                  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
                CLASSLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      CLASSNAME:
                        type: string
                        maxLength: 64
                        description: Class Name
                      RANKVAL:
                        type: integer
                        format: int64
                        description: Rank in the hit list
                      CATID:
                        type: string
                        maxLength: 32
                        description: Index category identification
                      LAISO:
                        type: string
                        maxLength: 2
                        description: Language According to ISO 639 (2 Character)
                TDOCTAB:
                  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)
              required:
              - CATID
              - CLASSHIERARCHY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NUMOFCLASSES:
                    type: integer
                    format: int64
                  RCODE:
                    type: string
                    maxLength: 4
                  BDOCTAB:
                    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
                  CLASSLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        CLASSNAME:
                          type: string
                          maxLength: 64
                          description: Class Name
                        RANKVAL:
                          type: integer
                          format: int64
                          description: Rank in the hit list
                        CATID:
                          type: string
                          maxLength: 32
                          description: Index category identification
                        LAISO:
                          type: string
                          maxLength: 2
                          description: Language According to ISO 639 (2 Character)
                  TDOCTAB:
                    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)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
