openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SKWR_DOC_FEATURES_GET:
    post:
      tags:
      - SKWR_TEXT_MINING
      operationId: /rfc/SKWR_DOC_FEATURES_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DOCUMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 1
                        description: 'KW Framework: IO type'
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
                      LAISO:
                        type: string
                        maxLength: 2
                        description: Language according to ISO 639
                      CODE_PAGE:
                        type: string
                        description: Optional, Character Set ID
                      CONTENT_TYPE:
                        type: string
                        maxLength: 1
                        description: Representation Type of Document
                      MIME_TYPE:
                        type: string
                        description: Optional, Document MIME Type
                      TXT_CONTENT:
                        type: string
                        description: 'URL, File, Text: Alternative bin_content'
                      BIN_CONTENT:
                        type: string
                        format: byte
                        description: Optional
                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_FEATURES:
                  type: integer
                  format: int32
                  default: 10
                PHIOS:
                  type: array
                  items:
                    type: object
                    properties:
                      OBJTYPE:
                        type: string
                        maxLength: 1
                        description: 'KW Framework: IO type'
                      CLASS:
                        type: string
                        maxLength: 10
                        description: Document class
                      OBJID:
                        type: string
                        maxLength: 32
                        description: ID for documents and relations
              required:
              - INDEX
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CODE_PAGE:
                    type: string
                    description: Character Set ID
                  DOC_FEATURES:
                    type: array
                    items:
                      type: object
                      properties:
                        OBJTYPE:
                          type: string
                          maxLength: 1
                          description: 'KW Framework: IO type'
                        CLASS:
                          type: string
                          maxLength: 10
                          description: Document class
                        OBJID:
                          type: string
                          maxLength: 32
                          description: ID for documents and relations
                        FEATURE:
                          type: string
                          description: Document Key Word
                        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.
