openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_WRITE_FILE:
    post:
      tags:
      - TREX_RFC_TRACE
      summary: Get list of trace files for one TREX landscape
      operationId: /rfc/TREX_RFC_WRITE_FILE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BINMODE:
                  type: string
                  format: byte
                  description: if TRUE (=1) open file in binary mode
                FILE_PATH:
                  type: string
                  format: byte
                  description: File path / name pattern
                FILE_SIZE:
                  type: integer
                  format: int64
                  description: File size
                HOST:
                  type: string
                  format: byte
                  description: Host
                LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: ''
              required:
              - BINMODE
              - FILE_PATH
              - FILE_SIZE
              - HOST
      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
                  LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
