openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_MON_SQLTEXT:
    post:
      tags:
      - SFMSS_MONSYSCAT
      summary: Get SQL Text for an MSS object
      operationId: /rfc/MSS_MON_SQLTEXT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name of a Database Connection
                OBJECT_NAME:
                  type: string
                  maxLength: 128
                  description: Object name
                OBJ_DB:
                  type: string
                  maxLength: 128
                  description: Database where object is located
                OBJ_SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema where object is located
                QUOTES:
                  type: string
                  maxLength: 1
                  description: If 'X', then quotes around identifiers are not removed from the output string.
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Target Schema
                STRING:
                  type: string
                  maxLength: 1
                  description: If 'X', then output as string.
                TABLE:
                  type: string
                  maxLength: 1
                  description: If 'X', then output as table.
                SQLTABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: Output line of sp_helptext
              required:
              - OBJECT_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SQLSTRING:
                    type: string
                    description: SQL definition statement text
                  SQLSTRING_LENGTH:
                    type: integer
                    format: int32
                    description: Length of the SQL definition statement text
                  SQLTABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        TEXTLINE:
                          type: string
                          maxLength: 255
                          description: Output line of sp_helptext
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
