openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_ARW_CONNECTION_CHECK:
    post:
      tags:
      - TREX_ARW_ADMINISTRATION
      summary: Get list of R/3 App Server pings to TREX
      operationId: /rfc/TREX_ARW_CONNECTION_CHECK
      requestBody:
        content:
          application/json:
            schema:
              properties:
                RFC_DESTINATION:
                  type: string
                  format: byte
                  description: RFC Destination
                CONNECTION_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      APP_SERVER:
                        type: string
                        format: byte
                        description: Name of the Application Server
                      PING_TIME:
                        type: string
                        format: byte
                        description: Ping Time to TREX in ms
                      ERROR_MESSAGE:
                        type: string
                        format: byte
                        description: Ping Error Message
                      GW_HOST:
                        type: string
                        format: byte
                        description: Gateway Host
                      GW_SERVICE:
                        type: string
                        format: byte
                        description: Gateway Service
                      PROGRAM_ID:
                        type: string
                        format: byte
                        description: ''
                      DIA_WPS:
                        type: string
                        format: byte
                        description: Number of DIA workprocesses on this AppServer
                      BGD_WPS:
                        type: string
                        format: byte
                        description: Number of BGD workprocesses on this AppServer
                RFC_PING_HOST_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      HOST_NAME:
                        type: string
                        format: byte
                        description: Host Name
              required:
              - RFC_DESTINATION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  CONNECTION_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        APP_SERVER:
                          type: string
                          format: byte
                          description: Name of the Application Server
                        PING_TIME:
                          type: string
                          format: byte
                          description: Ping Time to TREX in ms
                        ERROR_MESSAGE:
                          type: string
                          format: byte
                          description: Ping Error Message
                        GW_HOST:
                          type: string
                          format: byte
                          description: Gateway Host
                        GW_SERVICE:
                          type: string
                          format: byte
                          description: Gateway Service
                        PROGRAM_ID:
                          type: string
                          format: byte
                          description: ''
                        DIA_WPS:
                          type: string
                          format: byte
                          description: Number of DIA workprocesses on this AppServer
                        BGD_WPS:
                          type: string
                          format: byte
                          description: Number of BGD workprocesses on this AppServer
                  RFC_PING_HOST_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        HOST_NAME:
                          type: string
                          format: byte
                          description: Host Name
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
