openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB02N_GET_TSSIZE_WEEK_HIST_DB2:
    post:
      tags:
      - S_DB02N_DB2
      operationId: /rfc/DB02N_GET_TSSIZE_WEEK_HIST_DB2
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DATABASE:
                  type: string
                  maxLength: 8
                  description: Database name
                PARTITION:
                  type: integer
                  format: int32
                  description: Partition number
                TABLESPACE:
                  type: string
                  maxLength: 8
                  description: Name of the tablespace
                TABLESPACE_WEEK_HISTORY_OLD:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 8
                        description: Name of the tablespace
                      DBNAME:
                        type: string
                        maxLength: 8
                        description: Database name
                      PARTITIONS:
                        type: integer
                        format: int32
                        description: Number of partitions of a tablespace or index
                      PART:
                        type: integer
                        format: int32
                        description: Partition number
                      EXTENTS:
                        type: integer
                        format: int64
                        description: Total number of extents of a tablespace or index
                      ALLOCSIZE:
                        type: integer
                        format: int64
                        description: Total size of a tablespace (allocated storage in KB)
                      FREESIZE:
                        type: integer
                        format: int64
                        description: Free size of a tablespace in KB (allocated minus used stor.)
                      PCTUSED:
                        type: integer
                        format: int64
                        description: Percentage of used size to allocated size of a tablespace
                      STORDATE:
                        type: string
                        format: date
                        description: Date when the storage information has been collected
              required:
              - DATABASE
              - PARTITION
              - TABLESPACE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TABLESPACE_WEEK_HISTORY_OLD:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 8
                          description: Name of the tablespace
                        DBNAME:
                          type: string
                          maxLength: 8
                          description: Database name
                        PARTITIONS:
                          type: integer
                          format: int32
                          description: Number of partitions of a tablespace or index
                        PART:
                          type: integer
                          format: int32
                          description: Partition number
                        EXTENTS:
                          type: integer
                          format: int64
                          description: Total number of extents of a tablespace or index
                        ALLOCSIZE:
                          type: integer
                          format: int64
                          description: Total size of a tablespace (allocated storage in KB)
                        FREESIZE:
                          type: integer
                          format: int64
                          description: Free size of a tablespace in KB (allocated minus used stor.)
                        PCTUSED:
                          type: integer
                          format: int64
                          description: Percentage of used size to allocated size of a tablespace
                        STORDATE:
                          type: string
                          format: date
                          description: Date when the storage information has been collected
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
