openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_EXPLAIN_SQL_STMT:
    post:
      tags:
      - SFMSS_PERF
      summary: MS SQL server function to get statistics, showplan for SQL stmt execution.
      operationId: /rfc/MSS_EXPLAIN_SQL_STMT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name of a Database Connection
                IO_STATS_ON:
                  type: string
                  default: X
                  maxLength: 1
                NO_EXECUTE:
                  type: string
                  maxLength: 1
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Target Schema
                SHOWPLAN_ON:
                  type: string
                  default: X
                  maxLength: 1
                SIMPLE_EXPLAIN:
                  type: string
                  default: X
                  maxLength: 1
                TIME_STATS_ON:
                  type: string
                  default: X
                  maxLength: 1
                TRACE_FLAG_LIST:
                  type: string
                  default: ' '
                  maxLength: 64
                SQLCODE:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: MS sql server - stored procedure text line
                SQLEXEC_PLAN:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 2048
                        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SQLCODE:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 255
                          description: MS sql server - stored procedure text line
                  SQLEXEC_PLAN:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 2048
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
