openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SMON_TRACE_UPLOAD:
    post:
      tags:
      - SMON_TRACE
      operationId: /rfc/SMON_TRACE_UPLOAD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COMPONENT:
                  type: string
                  maxLength: 50
                FROM_DATE:
                  type: string
                  format: date
                FROM_TIME:
                  type: string
                  maxLength: 6
                MAX_LINES:
                  type: integer
                  format: int32
                SERVICE:
                  type: string
                  maxLength: 2
                  description: 'SAPconnect/SAPphone Monitoring: Service Type'
                TYPE:
                  type: string
                  default: I
                  maxLength: 1
                UNTIL_DATE:
                  type: string
                  format: date
                UNTIL_TIME:
                  type: string
                  maxLength: 6
                TRACE:
                  type: array
                  items:
                    type: object
                    properties:
                      DATE:
                        type: string
                        format: date
                        description: Field of type DATS
                      TIME:
                        type: string
                        maxLength: 6
                        description: Field of type TIMS
                      TYPE:
                        type: string
                        maxLength: 1
                        description: 'SAPconnect/SAPphone monitoring: Trace type  enumValues: E=Errors,I=Information (+ Warnings + Errors),W=Warnings (+ Errors)'
                        enum:
                        - E
                        - I
                        - W
                      ID:
                        type: string
                        maxLength: 10
                        description: Return code from external software
                      TEXT:
                        type: string
                        maxLength: 1000
                        description: 'SAPconnect/SAPphone monitoring: Trace line'
              required:
              - COMPONENT
              - FROM_DATE
              - FROM_TIME
              - MAX_LINES
              - UNTIL_DATE
              - UNTIL_TIME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TRACE:
                    type: array
                    items:
                      type: object
                      properties:
                        DATE:
                          type: string
                          format: date
                          description: Field of type DATS
                        TIME:
                          type: string
                          maxLength: 6
                          description: Field of type TIMS
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'SAPconnect/SAPphone monitoring: Trace type  enumValues: E=Errors,I=Information (+ Warnings + Errors),W=Warnings (+ Errors)'
                          enum:
                          - E
                          - I
                          - W
                        ID:
                          type: string
                          maxLength: 10
                          description: Return code from external software
                        TEXT:
                          type: string
                          maxLength: 1000
                          description: 'SAPconnect/SAPphone monitoring: Trace line'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
