openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_FUNCTION_SERVICE:
    post:
      tags:
      - TREX_RFC_ADMINISTRATION
      summary: TREXRfcServer General Function Interface
      operationId: /rfc/TREX_RFC_FUNCTION_SERVICE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FUNCTION_NAME:
                  type: string
                  format: byte
                  description: Internal TREX RFC Function Name
                VERSION:
                  type: integer
                  format: int64
                  description: version for parameters
                EXPORT_XML:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: ''
                IMPORT_XML:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: ''
              required:
              - FUNCTION_NAME
              - VERSION
      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
                  EXPORT_XML:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: ''
                  IMPORT_XML:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
