openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EXEC_SQLCMD_MSQ:
    post:
      tags:
      - SFMSS_DBUTIL
      summary: MS SQL Server function to execute  sql command
      operationId: /rfc/EXEC_SQLCMD_MSQ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema name
                SQLCOMMAND:
                  type: string
                  maxLength: 8192
                SQLCMDRES:
                  type: array
                  items:
                    type: object
                    properties:
                      CMDOUTPUT:
                        type: string
                        maxLength: 1024
                        description: MS SQL server - sql command ouptput
              required:
              - SQLCOMMAND
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SQLCMDRES:
                    type: array
                    items:
                      type: object
                      properties:
                        CMDOUTPUT:
                          type: string
                          maxLength: 1024
                          description: MS SQL server - sql command ouptput
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
