openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_QUERY_SQLERRORLOGS:
    post:
      tags:
      - SFMSS_ERRORLOGS
      summary: query the sql error logs for an input phrase
      operationId: /rfc/MSS_QUERY_SQLERRORLOGS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                FIND_PHRASE:
                  type: string
                  maxLength: 256
                  description: MS SQL server - output line of sql server error log
                NUM_LOG:
                  type: integer
                  format: int32
                  description: number of SQL Server sql error or sql agent log to display
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema name
                LOGLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      ERROUTPUT:
                        type: string
                        maxLength: 256
                        description: MS SQL server - output line of sql server error log
              required:
              - FIND_PHRASE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LOGLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        ERROUTPUT:
                          type: string
                          maxLength: 256
                          description: MS SQL server - output line of sql server error log
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
