openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DBMCLI_COMMAND_EXECUTE:
    post:
      tags:
      - SLCA
      operationId: /rfc/DBMCLI_COMMAND_EXECUTE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMM_TEXT:
                  type: string
                  default: ' '
                  maxLength: 70
                  description: Screens, Function Code Triggered by PAI
                CON_NAME:
                  type: string
                  maxLength: 30
                  description: Logical Name for a Database Connection
                DBMCLI_PARAMETERS:
                  type: string
                  maxLength: 255
                  description: Parameters of external program (string)
                FORCE_MODE:
                  type: string
                  maxLength: 1
                USE_DBMRFC:
                  type: string
                  maxLength: 1
                ACTION_PROTOCOL:
                  type: array
                  items:
                    type: object
                    properties:
                      ZEILE:
                        type: string
                        maxLength: 255
                        description: Log line
                DBMCLI_EXEC_PROTOCOL:
                  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:
              - CON_NAME
              - DBMCLI_PARAMETERS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXITCODE:
                    type: integer
                    format: int32
                  STATUS:
                    type: string
                    maxLength: 1
                  ACTION_PROTOCOL:
                    type: array
                    items:
                      type: object
                      properties:
                        ZEILE:
                          type: string
                          maxLength: 255
                          description: Log line
                  DBMCLI_EXEC_PROTOCOL:
                    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.
