openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_DB4_DELETED_RECORDS:
    post:
      tags:
      - STU4_TCC
      summary: 'DB2 OS/400: Get number of deleted records from table DBSTATTDB4'
      operationId: /rfc/GET_DB4_DELETED_RECORDS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DBCNAME:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                DBHOST:
                  type: string
                  maxLength: 32
                  description: R/3 System, Name of Application Server
                SCHEMANAME:
                  type: string
                  maxLength: 10
                  description: R/3 System, Name of Application Server
                ANALYSIS_TIMESTAMP:
                  type: array
                  items:
                    type: object
                    properties:
                      DB4DATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      DB4TIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                DEL_RECS:
                  type: array
                  items:
                    type: object
                    properties:
                      TBLNAME:
                        type: string
                        maxLength: 30
                        description: Table name
                      NUMREC:
                        type: integer
                        format: int64
                        description: Number of rows in a table
                      NUMDLT:
                        type: integer
                        format: int64
                        description: 'iSeries: Number of rows / object size'
                      PCTDLT:
                        type: integer
                        format: int32
                        description: 'DB2 UDB for iSeries: Percentage'
                      ROWLEN:
                        type: integer
                        format: int32
                        description: 'DB2 UDB for iSeries: Record Length'
                      SPWASTE:
                        type: integer
                        format: int64
                        description: 'DB2 UDB for iSeries: Unused Disk Space'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ANALYSIS_TS:
                    type: object
                    properties:
                      DB4DATE:
                        type: string
                        format: date
                        description: Current Date of Application Server
                      DB4TIME:
                        type: string
                        maxLength: 6
                        description: Current Time of Application Server
                  DELETED_RECORDS:
                    type: object
                    properties:
                      TBLNAME:
                        type: string
                        maxLength: 30
                        description: Table name
                      NUMREC:
                        type: integer
                        format: int64
                        description: Number of rows in a table
                      NUMDLT:
                        type: integer
                        format: int64
                        description: 'iSeries: Number of rows / object size'
                      PCTDLT:
                        type: integer
                        format: int32
                        description: 'DB2 UDB for iSeries: Percentage'
                      ROWLEN:
                        type: integer
                        format: int32
                        description: 'DB2 UDB for iSeries: Record Length'
                      SPWASTE:
                        type: integer
                        format: int64
                        description: 'DB2 UDB for iSeries: Unused Disk Space'
                  ANALYSIS_TIMESTAMP:
                    type: array
                    items:
                      type: object
                      properties:
                        DB4DATE:
                          type: string
                          format: date
                          description: Current Date of Application Server
                        DB4TIME:
                          type: string
                          maxLength: 6
                          description: Current Time of Application Server
                  DEL_RECS:
                    type: array
                    items:
                      type: object
                      properties:
                        TBLNAME:
                          type: string
                          maxLength: 30
                          description: Table name
                        NUMREC:
                          type: integer
                          format: int64
                          description: Number of rows in a table
                        NUMDLT:
                          type: integer
                          format: int64
                          description: 'iSeries: Number of rows / object size'
                        PCTDLT:
                          type: integer
                          format: int32
                          description: 'DB2 UDB for iSeries: Percentage'
                        ROWLEN:
                          type: integer
                          format: int32
                          description: 'DB2 UDB for iSeries: Record Length'
                        SPWASTE:
                          type: integer
                          format: int64
                          description: 'DB2 UDB for iSeries: Unused Disk Space'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
