openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_VIEW_INFO:
    post:
      tags:
      - SFMSS_DBUTIL
      summary: Get information on a view
      operationId: /rfc/MSS_GET_VIEW_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: DBCON name
                DB_NAME:
                  type: string
                  maxLength: 128
                  description: Database name
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Target Schema
                SCHEMA_NAME:
                  type: string
                  maxLength: 128
                  description: Schema name
                VIEW_NAME:
                  type: string
                  maxLength: 128
                  description: View name
                BASE_TABLES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 128
                        description: Table name
                SQLSTMT:
                  type: array
                  items:
                    type: object
                    properties:
                      TEXTLINE:
                        type: string
                        maxLength: 255
                        description: Output line of sp_helptext
              required:
              - VIEW_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BASE_TABLES:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 128
                          description: Table name
                  SQLSTMT:
                    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.
