openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_PERFORMANCE_TRACE:
    post:
      tags:
      - TREX_RFC_TRACE
      summary: start performance trace
      operationId: /rfc/TREX_RFC_PERFORMANCE_TRACE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: integer
                  format: int64
                  description: '0: start trace 1:stop 2:clear 3:copy'
                DETAILS:
                  type: integer
                  format: int64
                  description: Details
                DURATION:
                  type: integer
                  format: int64
                  description: duration of tracing in seconds
                USER:
                  type: string
                  format: byte
                  description: User
                BINARY_DATA:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        format: byte
                        description: ''
                INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      STARTTIME:
                        type: integer
                        format: int64
                        description: Time Stamp (Date and Time)
                      STOPTIME:
                        type: integer
                        format: int64
                        description: Time Stamp (Date and Time)
                      REMAINING_SECONDS:
                        type: integer
                        format: int64
                        description: Remaining seconds
                      DETAILS:
                        type: integer
                        format: int64
                        description: Details
                      USER:
                        type: string
                        format: byte
                        description: User
                      FILESIZE_KB:
                        type: integer
                        format: int64
                        description: File size in KB
              required:
              - ACTION
              - DETAILS
              - DURATION
              - USER
      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
                  BINARY_DATA:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          format: byte
                          description: ''
                  INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        STARTTIME:
                          type: integer
                          format: int64
                          description: Time Stamp (Date and Time)
                        STOPTIME:
                          type: integer
                          format: int64
                          description: Time Stamp (Date and Time)
                        REMAINING_SECONDS:
                          type: integer
                          format: int64
                          description: Remaining seconds
                        DETAILS:
                          type: integer
                          format: int64
                          description: Details
                        USER:
                          type: string
                          format: byte
                          description: User
                        FILESIZE_KB:
                          type: integer
                          format: int64
                          description: File size in KB
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
