openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_XPLN_DOWNLOAD:
    post:
      tags:
      - DB6XDWN
      summary: 'DB6: Downloads'
      operationId: /rfc/DB6_XPLN_DOWNLOAD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                DB2LEVEL:
                  type: string
                  maxLength: 1
                  description: 'DB6: Get db2 Level (''X'' | '' '')'
                DB2SET:
                  type: string
                  maxLength: 1
                  description: 'DB6: Get Profile Param (''X'' | '' '')'
                DBCFG:
                  type: string
                  maxLength: 1
                  description: 'DB6: Get DB Config (''X'' | '' '')'
                DBMCFG:
                  type: string
                  maxLength: 1
                  description: 'DB6: Get DBM Config (''X'' | '' '')'
                DBOPSYS:
                  type: string
                  maxLength: 10
                  description: 'System: Operating system'
                DBSERVER:
                  type: string
                  maxLength: 255
                  description: DB Server
                DISPLAY:
                  type: string
                  maxLength: 1
                  description: 'DB6: fill tables for display (''X'' | '' '') otherwise the tables are not filled!'
                EXPLAIN:
                  type: string
                  maxLength: 1
                  description: 'DB6: Get Explain (''X'' | '' '')'
                EXPLAIN_TIME:
                  type: string
                  maxLength: 26
                  description: 'DB6: Built-In UDB Type Timestamp'
                EXPORT:
                  type: string
                  maxLength: 1
                  description: 'DB6: DB2 Export (''X'' | '' '') on DB Server!'
                FILENAME:
                  type: string
                  maxLength: 255
                  description: Local file for upload/download
                FILENAME_EXPORT:
                  type: string
                  maxLength: 255
                  description: Filename for export data on DB Server!
                PATH:
                  type: string
                  maxLength: 255
                  description: Local path for upload/download
                PATH_EXPORT:
                  type: string
                  maxLength: 255
                  description: Path for export data on DB Server!
                STATS:
                  type: string
                  maxLength: 1
                  description: 'DB6: Get Statistics  (''X'' | '' '')'
                TABSTRUCT:
                  type: string
                  maxLength: 1
                  description: 'DB6: Get Tabstruct (''X'' | '' '')'
                TBSCFG:
                  type: string
                  maxLength: 1
                  description: 'DB6: Get TBS Config (''X'' | '' '')'
                IT_DB2LEVEL:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
                IT_DB2SET:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
                IT_DBCFG:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
                IT_DBMCFG:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
                IT_EXPLAIN:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
                IT_STATS:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
                IT_TABSTRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
                IT_TBSCFG:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
              required:
              - DBOPSYS
              - DBSERVER
              - DISPLAY
              - EXPLAIN_TIME
              - FILENAME
              - FILENAME_EXPORT
              - PATH
              - PATH_EXPORT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DOWNLOAD_BYTE:
                    type: integer
                    format: int32
                    description: 'DB6: total download in bytes'
                  IT_DB2LEVEL:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
                  IT_DB2SET:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
                  IT_DBCFG:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
                  IT_DBMCFG:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
                  IT_EXPLAIN:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
                  IT_STATS:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
                  IT_TABSTRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
                  IT_TBSCFG:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
