openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/EW_TH_WPINFO:
    post:
      tags:
      - STUN
      operationId: /rfc/EW_TH_WPINFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DESTINATION:
                  type: string
                  default: NONE
                  maxLength: 32
                WITH_CPU:
                  type: string
                  format: byte
                WPLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      WP_NO:
                        type: string
                        maxLength: 2
                        description: Work process no.
                      WP_ITYPE:
                        type: integer
                        format: int32
                        description: 'Internal work process type  enumValues: 4=Batch,1=Dialog,6=Update2,0=NO_WP,5=Spool,3=Enqueue,2=Update'
                        enum:
                        - '4'
                        - '1'
                        - '6'
                        - '0'
                        - '5'
                        - '3'
                        - '2'
                      WP_TYP:
                        type: string
                        maxLength: 3
                        description: Type
                      WP_PID:
                        type: string
                        maxLength: 8
                        description: Process Identification
                      WP_ISTATUS:
                        type: integer
                        format: int32
                        description: Work process status
                      WP_STATUS:
                        type: string
                        maxLength: 7
                        description: Work process status
                      WP_IWAIT:
                        type: integer
                        format: int32
                        description: Reason for wait
                      WP_WAITING:
                        type: string
                        maxLength: 5
                        description: Why Work Process is Waiting
                      WP_SEM:
                        type: string
                        maxLength: 2
                        description: Semaphore that the work process is waiting for
                      WP_IRESTRT:
                        type: integer
                        format: int32
                        description: Restart After Error
                      WP_RESTART:
                        type: string
                        maxLength: 4
                        description: Restart work process after dump?
                      WP_DUMPS:
                        type: string
                        maxLength: 2
                        description: Number of Dumps of the Work Process
                      WP_CPU:
                        type: string
                        maxLength: 8
                        description: CPU
                      WP_ELTIME:
                        type: string
                        maxLength: 6
                        description: Previous Runtime of Request (elapsed)
                      WP_MANDT:
                        type: string
                        maxLength: 3
                        description: Client
                      WP_BNAME:
                        type: string
                        maxLength: 12
                        description: User Currently Served
                      WP_REPORT:
                        type: string
                        maxLength: 40
                        description: Report now running
                      WP_IACTION:
                        type: integer
                        format: int32
                        description: Current activity of the work process
                      WP_ACTION:
                        type: string
                        maxLength: 25
                        description: Current Activity of the Work Process
                      WP_TABLE:
                        type: string
                        maxLength: 30
                        description: DB table last accessed by the work process
                      WP_SERVER:
                        type: string
                        maxLength: 20
                        description: Server Name
                      WP_WAITINF:
                        type: string
                        maxLength: 40
                        description: Additional information about the reason for waiting
                      WP_WAITTIM:
                        type: string
                        maxLength: 8
                        description: Time when waiting started
                      WP_SEMSTAT:
                        type: integer
                        format: int32
                        description: 'Internal work process type  enumValues: 4=Batch,1=Dialog,6=Update2,0=NO_WP,5=Spool,3=Enqueue,2=Update'
                        enum:
                        - '4'
                        - '1'
                        - '6'
                        - '0'
                        - '5'
                        - '3'
                        - '2'
                      WP_INDEX:
                        type: integer
                        format: int32
                        description: Index of Work Process
              required:
              - WITH_CPU
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SYSID:
                    type: string
                    maxLength: 8
                  WPLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        WP_NO:
                          type: string
                          maxLength: 2
                          description: Work process no.
                        WP_ITYPE:
                          type: integer
                          format: int32
                          description: 'Internal work process type  enumValues: 4=Batch,1=Dialog,6=Update2,0=NO_WP,5=Spool,3=Enqueue,2=Update'
                          enum:
                          - '4'
                          - '1'
                          - '6'
                          - '0'
                          - '5'
                          - '3'
                          - '2'
                        WP_TYP:
                          type: string
                          maxLength: 3
                          description: Type
                        WP_PID:
                          type: string
                          maxLength: 8
                          description: Process Identification
                        WP_ISTATUS:
                          type: integer
                          format: int32
                          description: Work process status
                        WP_STATUS:
                          type: string
                          maxLength: 7
                          description: Work process status
                        WP_IWAIT:
                          type: integer
                          format: int32
                          description: Reason for wait
                        WP_WAITING:
                          type: string
                          maxLength: 5
                          description: Why Work Process is Waiting
                        WP_SEM:
                          type: string
                          maxLength: 2
                          description: Semaphore that the work process is waiting for
                        WP_IRESTRT:
                          type: integer
                          format: int32
                          description: Restart After Error
                        WP_RESTART:
                          type: string
                          maxLength: 4
                          description: Restart work process after dump?
                        WP_DUMPS:
                          type: string
                          maxLength: 2
                          description: Number of Dumps of the Work Process
                        WP_CPU:
                          type: string
                          maxLength: 8
                          description: CPU
                        WP_ELTIME:
                          type: string
                          maxLength: 6
                          description: Previous Runtime of Request (elapsed)
                        WP_MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        WP_BNAME:
                          type: string
                          maxLength: 12
                          description: User Currently Served
                        WP_REPORT:
                          type: string
                          maxLength: 40
                          description: Report now running
                        WP_IACTION:
                          type: integer
                          format: int32
                          description: Current activity of the work process
                        WP_ACTION:
                          type: string
                          maxLength: 25
                          description: Current Activity of the Work Process
                        WP_TABLE:
                          type: string
                          maxLength: 30
                          description: DB table last accessed by the work process
                        WP_SERVER:
                          type: string
                          maxLength: 20
                          description: Server Name
                        WP_WAITINF:
                          type: string
                          maxLength: 40
                          description: Additional information about the reason for waiting
                        WP_WAITTIM:
                          type: string
                          maxLength: 8
                          description: Time when waiting started
                        WP_SEMSTAT:
                          type: integer
                          format: int32
                          description: 'Internal work process type  enumValues: 4=Batch,1=Dialog,6=Update2,0=NO_WP,5=Spool,3=Enqueue,2=Update'
                          enum:
                          - '4'
                          - '1'
                          - '6'
                          - '0'
                          - '5'
                          - '3'
                          - '2'
                        WP_INDEX:
                          type: integer
                          format: int32
                          description: Index of Work Process
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
