openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/STU3_EXPLAIN_SQL_REMOTE:
    post:
      tags:
      - STU3_EXPLAIN
      summary: Remotely callable Explain function
      operationId: /rfc/STU3_EXPLAIN_SQL_REMOTE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                EXPERT_MODE:
                  type: integer
                  format: int32
                  description: SQL statement text
                EXPLAIN_STMT:
                  type: string
                  maxLength: 30720
                  description: SQL statement text
                NO_DISPLAY:
                  type: string
                  maxLength: 1
                  description: Single-character flag
                PERFORM_EXPLAIN:
                  type: integer
                  format: int32
                  description: Perform Explain within function?
                STMT_DATE:
                  type: string
                  format: date
                  description: Date for historical view
                STMT_ID:
                  type: integer
                  format: int32
                  description: Statement ID from DSC
                STMT_MSEC:
                  type: string
                  maxLength: 6
                  description: Msec for historical view
                STMT_TIME:
                  type: string
                  maxLength: 6
                  description: Time for historical view
                STMT_TOKEN:
                  type: string
                  maxLength: 128
                  description: 128 character
                PLAN:
                  type: array
                  items:
                    type: object
                    properties:
                      FORMAT:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      LINE:
                        type: string
                        maxLength: 132
                        description: Text (length 132)
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SQL_CODE:
                    type: integer
                    format: int32
                    description: SQL code with statement ID
                  PLAN:
                    type: array
                    items:
                      type: object
                      properties:
                        FORMAT:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        LINE:
                          type: string
                          maxLength: 132
                          description: Text (length 132)
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
