openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ST04_DB4_GET_SRT_INFO:
    post:
      tags:
      - STU4_TCC
      summary: 'OS/400: Get table sorts info for ST04 Detail Analysis'
      operationId: /rfc/ST04_DB4_GET_SRT_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                RESETFLAG:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Feld vom Typ CHAR z.Zt nicht verwendet
                SRT_0100:
                  type: array
                  items:
                    type: object
                    properties:
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      IPLTIME:
                        type: string
                        maxLength: 14
                        description: Text field length 14
                      QQKEY:
                        type: string
                        maxLength: 17
                        description: 'iSeries: Key Field (Database Monitor)'
                      QQPLIB:
                        type: string
                        maxLength: 10
                        description: 'iSeries: Package/Program Library (Database Monitor)'
                      QQPNAM:
                        type: string
                        maxLength: 10
                        description: 'iSeries: Package/Program Name (Database Monitor)'
                      QQSNAM:
                        type: string
                        maxLength: 18
                        description: 'iSeries: Statement Name (Database Monitor)'
                      QQCNT:
                        type: integer
                        format: int64
                        description: 'iSeries: No. of Executions of a Statement (Database Monitor)'
                      QQCSO:
                        type: integer
                        format: int64
                        description: 'iSeries: No. of Sorts (Database Monitor)'
                      QQTTIM:
                        type: integer
                        format: int64
                        description: 'iSeries: Sort Time (Database Monitor)'
                      QQRSS:
                        type: integer
                        format: int32
                        description: 'iSeries: No. of Rows Selected or Sorted (Database Monitor)'
                      QQAVGT:
                        type: integer
                        format: int64
                        description: 'iSeries:  Average Time (Database Monitor)'
                      TOTTIME:
                        type: integer
                        format: int64
                        description: 'iSeries: Total Time (Database Monitor)'
                      QQMINT:
                        type: integer
                        format: int64
                        description: 'iSeries: Minimum Time  (Database Monitor)'
                      QQMAXT:
                        type: integer
                        format: int64
                        description: 'iSeries: Maximum Time (Database Monitor)'
                      QQMETU:
                        type: string
                        maxLength: 26
                        description: 'iSeries: Timest. of Most Expensive Stmt.  (Database Monitor)'
                      QQSSIZ:
                        type: integer
                        format: int64
                        description: 'iSeries: Sort Size (Database Monitor)'
                      QQPSIZ:
                        type: integer
                        format: int64
                        description: 'iSeries: Pool Size (Database Monitor)'
                      QQPID:
                        type: integer
                        format: int64
                        description: 'iSeries: Pool ID (Database Monitor)'
                      QQRCOD:
                        type: string
                        maxLength: 2
                        description: 'iSeries: Reason Code (Database Monitor)'
                      QQSTTX_LEN:
                        type: integer
                        format: int32
                        description: 2 byte integer (signed)
                      QQSTTX:
                        type: string
                        maxLength: 8000
                        description: 'iSeries: Statement Text (Database Monitor)'
                      QQUSER:
                        type: string
                        maxLength: 10
                        description: 'iSeries: Job User (Database Monitor)'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SRT_0100:
                    type: array
                    items:
                      type: object
                      properties:
                        SYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        IPLTIME:
                          type: string
                          maxLength: 14
                          description: Text field length 14
                        QQKEY:
                          type: string
                          maxLength: 17
                          description: 'iSeries: Key Field (Database Monitor)'
                        QQPLIB:
                          type: string
                          maxLength: 10
                          description: 'iSeries: Package/Program Library (Database Monitor)'
                        QQPNAM:
                          type: string
                          maxLength: 10
                          description: 'iSeries: Package/Program Name (Database Monitor)'
                        QQSNAM:
                          type: string
                          maxLength: 18
                          description: 'iSeries: Statement Name (Database Monitor)'
                        QQCNT:
                          type: integer
                          format: int64
                          description: 'iSeries: No. of Executions of a Statement (Database Monitor)'
                        QQCSO:
                          type: integer
                          format: int64
                          description: 'iSeries: No. of Sorts (Database Monitor)'
                        QQTTIM:
                          type: integer
                          format: int64
                          description: 'iSeries: Sort Time (Database Monitor)'
                        QQRSS:
                          type: integer
                          format: int32
                          description: 'iSeries: No. of Rows Selected or Sorted (Database Monitor)'
                        QQAVGT:
                          type: integer
                          format: int64
                          description: 'iSeries:  Average Time (Database Monitor)'
                        TOTTIME:
                          type: integer
                          format: int64
                          description: 'iSeries: Total Time (Database Monitor)'
                        QQMINT:
                          type: integer
                          format: int64
                          description: 'iSeries: Minimum Time  (Database Monitor)'
                        QQMAXT:
                          type: integer
                          format: int64
                          description: 'iSeries: Maximum Time (Database Monitor)'
                        QQMETU:
                          type: string
                          maxLength: 26
                          description: 'iSeries: Timest. of Most Expensive Stmt.  (Database Monitor)'
                        QQSSIZ:
                          type: integer
                          format: int64
                          description: 'iSeries: Sort Size (Database Monitor)'
                        QQPSIZ:
                          type: integer
                          format: int64
                          description: 'iSeries: Pool Size (Database Monitor)'
                        QQPID:
                          type: integer
                          format: int64
                          description: 'iSeries: Pool ID (Database Monitor)'
                        QQRCOD:
                          type: string
                          maxLength: 2
                          description: 'iSeries: Reason Code (Database Monitor)'
                        QQSTTX_LEN:
                          type: integer
                          format: int32
                          description: 2 byte integer (signed)
                        QQSTTX:
                          type: string
                          maxLength: 8000
                          description: 'iSeries: Statement Text (Database Monitor)'
                        QQUSER:
                          type: string
                          maxLength: 10
                          description: 'iSeries: Job User (Database Monitor)'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
