openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_HIS_TABLE_INDEX_DETAIL:
    post:
      tags:
      - SDB6DB02
      summary: 'DB6: get details of table index history'
      operationId: /rfc/DB6_HIS_TABLE_INDEX_DETAIL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                OBJECTNAME:
                  type: string
                  maxLength: 18
                  description: 'DB2 Universal Database: Table Name'
                OBJECTTYPE:
                  type: string
                  maxLength: 1
                  description: 'DB6: type of object (T=Table,I=Index)'
                STATTYPE:
                  type: string
                  maxLength: 1
                  description: 'DB6: Type of statistics (D=daily,W=weekly,M=monthly)'
                IT_DB6PM_T:
                  type: array
                  items:
                    type: object
                    properties:
                      STATTYPE:
                        type: string
                        maxLength: 1
                        description: 'DB6: Type of statistics (D=daily,W=weekly,M=monthly)'
                      OBJECTNAME:
                        type: string
                        maxLength: 18
                        description: 'DB6: Table Name'
                      OBJECTTYPE:
                        type: string
                        maxLength: 13
                        description: 'DB6: type of object (Table,Index)'
                      BASEDATE:
                        type: string
                        format: date
                        description: 'DB6: reference date of the statistics'
                      SIZEKB:
                        type: integer
                        format: int64
                        description: 'DB6: reference date of the statistics'
                      D_SIZEKB:
                        type: integer
                        format: int64
                        description: 'DB6: reference date of the statistics delta'
              required:
              - OBJECTNAME
              - OBJECTTYPE
              - STATTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PM_T:
                    type: array
                    items:
                      type: object
                      properties:
                        STATTYPE:
                          type: string
                          maxLength: 1
                          description: 'DB6: Type of statistics (D=daily,W=weekly,M=monthly)'
                        OBJECTNAME:
                          type: string
                          maxLength: 18
                          description: 'DB6: Table Name'
                        OBJECTTYPE:
                          type: string
                          maxLength: 13
                          description: 'DB6: type of object (Table,Index)'
                        BASEDATE:
                          type: string
                          format: date
                          description: 'DB6: reference date of the statistics'
                        SIZEKB:
                          type: integer
                          format: int64
                          description: 'DB6: reference date of the statistics'
                        D_SIZEKB:
                          type: integer
                          format: int64
                          description: 'DB6: reference date of the statistics delta'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
