openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_TRACE_FILE:
    post:
      tags:
      - TREX_RFC_TRACE
      summary: Get list of trace files for one TREX landscape
      operationId: /rfc/TREX_RFC_GET_TRACE_FILE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FILE_NAME:
                  type: string
                  format: byte
                  description: File name pattern
                HEAD_LENGTH:
                  type: integer
                  format: int64
                  description: Host where the file is located
                HEAD_OFFSET:
                  type: integer
                  format: int64
                  description: Host where the file is located
                HOST:
                  type: string
                  format: byte
                  description: Host where the file is located
                TAIL_LENGTH:
                  type: integer
                  format: int64
                  description: Host where the file is located
                LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: ''
              required:
              - FILE_NAME
              - HEAD_LENGTH
              - HEAD_OFFSET
              - HOST
              - TAIL_LENGTH
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  FILE_SIZE:
                    type: integer
                    format: int64
                    description: File size
                  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.
