openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_ARW_CONNECTION_FIND:
    post:
      tags:
      - TREX_ARW_ADMINISTRATION
      summary: Get all RFC connections having a specific Program ID
      operationId: /rfc/TREX_ARW_CONNECTION_FIND
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PROGRAM_ID:
                  type: string
                  format: byte
                  description: ProgramID or RFC Dest (for test if existing)
                RFC_CONNS_FOR_PROGID:
                  type: array
                  items:
                    type: object
                    properties:
                      RFC_DESTINATION:
                        type: string
                        format: byte
                        description: RFC destination to TREX engine
                      RFC_DESCRIPTION:
                        type: string
                        format: byte
                        description: Description of RFC connection
                      GW_HOST:
                        type: string
                        format: byte
                        description: Gateway host name
                      GW_SERVICE:
                        type: string
                        format: byte
                        description: Gateway service
                      PROGRAM_ID:
                        type: string
                        format: byte
                        description: Program ID
                      GW_IS_RUNNING:
                        type: string
                        format: byte
                        description: '''0'':is not running, ''1'':is running, '''':not set for local gw'
              required:
              - PROGRAM_ID
      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
                  RFC_CONNS_FOR_PROGID:
                    type: array
                    items:
                      type: object
                      properties:
                        RFC_DESTINATION:
                          type: string
                          format: byte
                          description: RFC destination to TREX engine
                        RFC_DESCRIPTION:
                          type: string
                          format: byte
                          description: Description of RFC connection
                        GW_HOST:
                          type: string
                          format: byte
                          description: Gateway host name
                        GW_SERVICE:
                          type: string
                          format: byte
                          description: Gateway service
                        PROGRAM_ID:
                          type: string
                          format: byte
                          description: Program ID
                        GW_IS_RUNNING:
                          type: string
                          format: byte
                          description: '''0'':is not running, ''1'':is running, '''':not set for local gw'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
