openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/STREX_DOCS_CLASSIFY:
    post:
      tags:
      - STREX_TEXT_MINING
      summary: Documentation Classification
      operationId: /rfc/STREX_DOCS_CLASSIFY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DOCUMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      LAISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      DOC_ID:
                        type: string
                        description: Document ID
                      CODE_PAGE:
                        type: string
                        description: Character Set ID
                      CONTENT_TYPE:
                        type: string
                        maxLength: 1
                        description: Representation Type of Document
                      MIME_TYPE:
                        type: string
                        description: Document MIME Type
                      TXT_CONTENT:
                        type: string
                        description: ''
                      BIN_CONTENT:
                        type: string
                        format: byte
                        description: ''
                INDEX:
                  type: object
                  properties:
                    ID:
                      type: string
                      maxLength: 32
                      description: GUID in 'CHAR' Format in Uppercase
                    LAISO:
                      type: string
                      maxLength: 2
                      description: Language according to ISO 639
                    CODE_PAGE:
                      type: string
                      description: Character Set ID
                    EXT_ENGINE:
                      type: string
                      description: Alias for External Search Engine
                MAX_CLASSES:
                  type: integer
                  format: int32
                TAXONOMY:
                  type: string
                THRESHOLD:
                  type: integer
                  format: int64
              required:
              - DOCUMENTS
              - INDEX
              - MAX_CLASSES
              - TAXONOMY
              - THRESHOLD
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CALL_RETURN_CODE:
                    type: object
                    properties:
                      RETURN_CODE:
                        type: integer
                        format: int32
                        description: ''
                      ERROR_TEXT:
                        type: string
                        description: ''
                  CODE_PAGE:
                    type: string
                    description: Character Set ID
                  DOC_CLASSES:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_ID:
                          type: string
                          description: ''
                        CLASS_COUNT:
                          type: integer
                          format: int32
                          description: Number of Taxonomy Classes for each Document
                        TAXONOMY_CLASS:
                          type: string
                          description: Taxonomy Class
                        RANK_VALUE:
                          type: integer
                          format: int64
                          description: 'Decimal Number: 0.0 to 1.0'
                        RETURN_CODE:
                          type: object
                          properties:
                            RETURN_CODE:
                              type: integer
                              format: int32
                              description: ''
                            ERROR_TEXT:
                              type: string
                              description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
