openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_SQLEXPLAIN:
    post:
      tags:
      - STUS
      summary: MS SQL Server get explain for a given SQL statement
      operationId: /rfc/MSS_GET_SQLEXPLAIN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name of a Database Connection
                FINAL_COMMAND:
                  type: string
                  maxLength: 30000
                GURU_AT_WORK:
                  type: string
                  default: ' '
                  maxLength: 1
                NOEXEC_X:
                  type: string
                  default: ' '
                  maxLength: 1
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Target Schema
                SHOWPLAN_X:
                  type: string
                  default: X
                  maxLength: 1
                SP_NAME:
                  type: string
                  default: ' '
                  maxLength: 256
                STATIO_X:
                  type: string
                  default: X
                  maxLength: 1
                TIMESTATS_X:
                  type: string
                  default: X
                  maxLength: 1
                TRACE_FLAGS:
                  type: string
                  default: ' '
                  maxLength: 64
                EXPLAIN_RESULT:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 2048
                        description: ''
                SP_PARAMS:
                  type: array
                  items:
                    type: object
                    properties:
                      PAR_NAME:
                        type: string
                        maxLength: 30
                        description: MS SQL server - stored procedure parameter name
                      PAR_TYPE:
                        type: string
                        maxLength: 30
                        description: MS SQL server - stored procedure parameter type
                      PAR_VALUE:
                        type: string
                        maxLength: 255
                        description: MS SQL server  stored procedure parameter value
                STMT_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: MS sql server - stored procedure text line
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EXPLAIN_RESULT:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 2048
                          description: ''
                  SP_PARAMS:
                    type: array
                    items:
                      type: object
                      properties:
                        PAR_NAME:
                          type: string
                          maxLength: 30
                          description: MS SQL server - stored procedure parameter name
                        PAR_TYPE:
                          type: string
                          maxLength: 30
                          description: MS SQL server - stored procedure parameter type
                        PAR_VALUE:
                          type: string
                          maxLength: 255
                          description: MS SQL server  stored procedure parameter value
                  STMT_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 255
                          description: MS sql server - stored procedure text line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
