openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GWY_READ_WORKPROCESSES:
    post:
      tags:
      - SGWY
      operationId: /rfc/GWY_READ_WORKPROCESSES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DISCONNECT:
                  type: string
                  maxLength: 1
                  description: Terminate connection
                GWHOST:
                  type: string
                  maxLength: 255
                GWSERV:
                  type: string
                  maxLength: 20
                WORKPROCESSES:
                  type: array
                  items:
                    type: object
                    properties:
                      WP:
                        type: string
                        maxLength: 10
                        description: Number of the work process
                      NO_CONN:
                        type: string
                        maxLength: 10
                        description: Number of connection
                      STATE:
                        type: string
                        maxLength: 16
                        description: Work process status
                      PID:
                        type: string
                        maxLength: 8
                        description: Gateway Process ID
                      ACT_CONN:
                        type: string
                        maxLength: 10
                        description: Current connection of the work process
                      ACT_REQ:
                        type: string
                        maxLength: 10
                        description: Current request block
                      NO_STARTS:
                        type: string
                        maxLength: 10
                        description: Number of Work Process Starts
                      TRACE:
                        type: string
                        maxLength: 10
                        description: Trace level
                      COMMTYPE:
                        type: string
                        maxLength: 10
                        description: General Counter
                      CHK_CONN:
                        type: string
                        maxLength: 10
                        description: General Counter
                      FILLER:
                        type: string
                        maxLength: 1
                        description: Fill byte for gateway structures
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NO_CONN:
                    type: integer
                    format: int32
                    description: Number of connections
                  NO_PROC:
                    type: integer
                    format: int32
                  WORKPROCESSES:
                    type: array
                    items:
                      type: object
                      properties:
                        WP:
                          type: string
                          maxLength: 10
                          description: Number of the work process
                        NO_CONN:
                          type: string
                          maxLength: 10
                          description: Number of connection
                        STATE:
                          type: string
                          maxLength: 16
                          description: Work process status
                        PID:
                          type: string
                          maxLength: 8
                          description: Gateway Process ID
                        ACT_CONN:
                          type: string
                          maxLength: 10
                          description: Current connection of the work process
                        ACT_REQ:
                          type: string
                          maxLength: 10
                          description: Current request block
                        NO_STARTS:
                          type: string
                          maxLength: 10
                          description: Number of Work Process Starts
                        TRACE:
                          type: string
                          maxLength: 10
                          description: Trace level
                        COMMTYPE:
                          type: string
                          maxLength: 10
                          description: General Counter
                        CHK_CONN:
                          type: string
                          maxLength: 10
                          description: General Counter
                        FILLER:
                          type: string
                          maxLength: 1
                          description: Fill byte for gateway structures
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
