openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/STREX_LOG_INDEX_DOC:
    post:
      tags:
      - STREX_INDEX
      operationId: /rfc/STREX_LOG_INDEX_DOC
      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_ID:
                  type: string
                  maxLength: 32
                PROPERTIES:
                  type: array
                  items:
                    type: object
                    properties:
                      DOC_ID:
                        type: string
                        description: ''
                      ATTR_NAME:
                        type: string
                        maxLength: 64
                        description: Attribute Name
                      VALUE:
                        type: string
                        description: Attribute Value
                      ATTR_TYPE:
                        type: string
                        maxLength: 1
                        description: Content Type of Documents or Attributes
              required:
              - DOCUMENTS
              - INDEX_ID
              - PROPERTIES
      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: ''
                  DOC_RETURN_CODES:
                    type: array
                    items:
                      type: object
                      properties:
                        DOC_ID:
                          type: string
                          description: Document ID
                        RETURN_CODE:
                          type: integer
                          format: int32
                          description: Return Code
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
