openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_THREAD_INFO:
    post:
      tags:
      - TREX_RFC_TOOLS
      summary: get Service Thread Info
      operationId: /rfc/TREX_RFC_GET_THREAD_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LOCATION:
                  type: string
                  maxLength: 256
                SERVER_TYPE:
                  type: integer
                  format: int64
                THREAD_MODE:
                  type: string
                  maxLength: 1
                  description: filterTypicalThreadTypes
                THREAD_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      LOCATION:
                        type: string
                        format: byte
                        description: ''
                      SERVER_TYPE:
                        type: integer
                        format: int64
                        description: service type
                      THREAD_ID:
                        type: integer
                        format: int64
                        description: ''
                      THREAD_HIERARCHY:
                        type: string
                        format: byte
                        description: ''
                      THREAD_TYPE:
                        type: string
                        format: byte
                        description: ''
                      METHOD:
                        type: string
                        format: byte
                        description: ''
                      DETAIL:
                        type: string
                        format: byte
                        description: ''
                      DURATION:
                        type: integer
                        format: int64
                        description: ''
                      STARTED:
                        type: integer
                        format: int64
                        description: ''
                      CALLED_FROM:
                        type: string
                        format: byte
                        description: ''
                      CALLING:
                        type: string
                        format: byte
                        description: ''
              required:
              - LOCATION
              - SERVER_TYPE
              - THREAD_MODE
      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
                  THREAD_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        LOCATION:
                          type: string
                          format: byte
                          description: ''
                        SERVER_TYPE:
                          type: integer
                          format: int64
                          description: service type
                        THREAD_ID:
                          type: integer
                          format: int64
                          description: ''
                        THREAD_HIERARCHY:
                          type: string
                          format: byte
                          description: ''
                        THREAD_TYPE:
                          type: string
                          format: byte
                          description: ''
                        METHOD:
                          type: string
                          format: byte
                          description: ''
                        DETAIL:
                          type: string
                          format: byte
                          description: ''
                        DURATION:
                          type: integer
                          format: int64
                          description: ''
                        STARTED:
                          type: integer
                          format: int64
                          description: ''
                        CALLED_FROM:
                          type: string
                          format: byte
                          description: ''
                        CALLING:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
