openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_SQLTEXT_BY_HANDLE:
    post:
      tags:
      - SFMSS_SQLREQUESTS
      summary: MS SQL server function to get sqltext from sys.dm_exec_sql_text
      operationId: /rfc/MSS_GET_SQLTEXT_BY_HANDLE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name of a Database Connection
                END_OFFSET:
                  type: integer
                  format: int32
                  default: 0
                  description: SQL Server int4
                QUOTES:
                  type: string
                  maxLength: 1
                  description: If 'X', then quotes around identifiers are not removed from the output string.
                SQL_HANDLE:
                  type: string
                  maxLength: 128
                  description: handle pointing to plan used in execution of sql stmt/proc
                START_OFFSET:
                  type: integer
                  format: int32
                  default: 0
                  description: SQL Server int4
              required:
              - END_OFFSET
              - SQL_HANDLE
              - START_OFFSET
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SQLSTRING_LENGTH:
                    type: integer
                    format: int32
                    description: Natural number
                  SQLTEXT:
                    type: string
                    description: sql text
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
