openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_DIAG_GET_PROGRAM_VERSION:
    post:
      tags:
      - SDB6DIAG
      summary: 'DB6: list directory contents'
      operationId: /rfc/DB6_DIAG_GET_PROGRAM_VERSION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                LOCATION:
                  type: string
                  maxLength: 1
                  description: '''X''=directory is local on file,'' ''=on DB server'
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition number (only if local<>'X')
                PATH:
                  type: string
                  maxLength: 255
                  description: 'DB2 Universal Database: File path'
                PROGRAM:
                  type: string
                  maxLength: 255
                  description: 'DB2 Universal Database: File path'
                CONTENT:
                  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:
              - LOCATION
              - PARTITN
              - PATH
              - PROGRAM
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CONTENT:
                    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.
