openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_TABLESNAP1:
    post:
      tags:
      - SDB6PMST04
      summary: 'DB6: Get Table Snapshot (RFC Layer1) Calculations'
      operationId: /rfc/DB6_PM_TABLESNAP1
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: integer
                  format: int32
                  description: Action to perform
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition Number
                IT_DB6PMSTAB:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PARTITN:
                        type: integer
                        format: int32
                        description: Partition Number
                      TAB_SCHEMA:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      TABLE_NAME:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      CALLERFLAG:
                        type: string
                        maxLength: 1
                        description: Who Has Called this Program
                      DBMSTRTTME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PRGVERS:
                        type: string
                        maxLength: 20
                        description: Version of Program Inserted this Row
                      TAB_FLE_ID:
                        type: integer
                        format: int64
                        description: 'table_file_id: File ID for the Table'
                      TABLE_TYPE:
                        type: string
                        maxLength: 25
                        description: 'table_type: Table Type'
                      RW_WRITTEN:
                        type: integer
                        format: int64
                        description: 'rows_written: Number of Changes to the Table'
                      RW_READ:
                        type: integer
                        format: int64
                        description: 'rows_read: Number of Reads from the Table'
                      OF_ACCESS:
                        type: integer
                        format: int64
                        description: 'overflow_accesses: Number of Accesses to Overflow Rec.'
                      PG_REORGS:
                        type: integer
                        format: int64
                        description: 'page_reorgs: Number of Page REORGs for Table'
              required:
              - ACTION
              - PARTITN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PMSTAB:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PARTITN:
                          type: integer
                          format: int32
                          description: Partition Number
                        TAB_SCHEMA:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        TABLE_NAME:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        CALLERFLAG:
                          type: string
                          maxLength: 1
                          description: Who Has Called this Program
                        DBMSTRTTME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PRGVERS:
                          type: string
                          maxLength: 20
                          description: Version of Program Inserted this Row
                        TAB_FLE_ID:
                          type: integer
                          format: int64
                          description: 'table_file_id: File ID for the Table'
                        TABLE_TYPE:
                          type: string
                          maxLength: 25
                          description: 'table_type: Table Type'
                        RW_WRITTEN:
                          type: integer
                          format: int64
                          description: 'rows_written: Number of Changes to the Table'
                        RW_READ:
                          type: integer
                          format: int64
                          description: 'rows_read: Number of Reads from the Table'
                        OF_ACCESS:
                          type: integer
                          format: int64
                          description: 'overflow_accesses: Number of Accesses to Overflow Rec.'
                        PG_REORGS:
                          type: integer
                          format: int64
                          description: 'page_reorgs: Number of Page REORGs for Table'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
