openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSWAD_MIME_DOWNLOAD:
    post:
      tags:
      - RSWAD
      summary: Download Mime-Folder structure
      operationId: /rfc/RSWAD_MIME_DOWNLOAD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_CHECK_AUTHORITY:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Boolean
                I_FE_ROOT:
                  type: string
                  default: C:\TEMP\
                  description: Default Frontend path, terminated by \ or FOLDERS or FILES
                I_MIME_ROOT:
                  type: string
                  default: SAP/BW/BEX/ICONS
                  description: Mime root path, separated by / , not terminated
                E_T_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: MIME data container
                E_T_MESSAGE:
                  type: array
                  items:
                    type: object
                    properties:
                      CONTEXT_ID:
                        type: integer
                        format: int32
                        description: Object ID
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      TEXT:
                        type: string
                        maxLength: 220
                        description: Message Text
                E_T_MIME:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 4096
                        description: 'KW Framework: URL or Part URL'
                      MIMETYPE:
                        type: string
                        maxLength: 128
                        description: HTML content type
                      LENGTH:
                        type: integer
                        format: int32
                        description: Natural number
              required:
              - I_FE_ROOT
              - I_MIME_ROOT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_MAX_MESSAGE_TYPE:
                    type: string
                    maxLength: 1
                    description: Message Type
                  E_SUBRC:
                    type: integer
                    format: int32
                    description: Return Value of ABAP Statements
                  E_T_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: MIME data container
                  E_T_MESSAGE:
                    type: array
                    items:
                      type: object
                      properties:
                        CONTEXT_ID:
                          type: integer
                          format: int32
                          description: Object ID
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        TEXT:
                          type: string
                          maxLength: 220
                          description: Message Text
                  E_T_MIME:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 4096
                          description: 'KW Framework: URL or Part URL'
                        MIMETYPE:
                          type: string
                          maxLength: 128
                          description: HTML content type
                        LENGTH:
                          type: integer
                          format: int32
                          description: Natural number
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
