openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_CONNECT_CHECK_LOCAL:
    post:
      tags:
      - TREX_ADMIN_TOOL
      summary: Tests the RFC Connection to a Gateway (local or other)
      operationId: /rfc/TREX_RFC_CONNECT_CHECK_LOCAL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                TREX_DESTINATION:
                  type: string
                  maxLength: 32
                  description: Logical Destination (Specified in Function Call)
              required:
              - TREX_DESTINATION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LOCAL_RESULT:
                    type: object
                    properties:
                      APP_SERVER:
                        type: string
                        maxLength: 40
                        description: Name of the Application Server
                      PING_TIME:
                        type: string
                        maxLength: 10
                        description: Ping Time to TREX in ms
                      ERROR_CODE:
                        type: integer
                        format: int32
                        description: Ping Error Code
                      ERROR_TEXT:
                        type: string
                        maxLength: 100
                        description: Ping Error Message
                      GW_HOST:
                        type: string
                        maxLength: 100
                        description: Gateway Host
                      GW_SERVICE:
                        type: string
                        maxLength: 32
                        description: Gateway Service
                      PROGRAM_ID:
                        type: string
                        maxLength: 40
                        description: Program ID
                      DIA_WPS:
                        type: string
                        maxLength: 10
                        description: Number of DIA workprocesses on this AppServer
                      BGD_WPS:
                        type: string
                        maxLength: 10
                        description: Number of BGD workprocesses on this AppServer
                  RFC_PING_HOST_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        HOST_NAME:
                          type: string
                          maxLength: 30
                          description: Host Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
