openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_TOP_N_TABLES:
    post:
      tags:
      - SFMSS_DBUTIL
      summary: Get the top n largest/modified tables
      operationId: /rfc/MSS_GET_TOP_N_TABLES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: DBCON name
                DB_NAME:
                  type: string
                  maxLength: 128
                  description: Database name
                NUMBER:
                  type: integer
                  format: int32
                  default: 25
                  description: Number of tables
                ORDER:
                  type: string
                  maxLength: 1
                  description: '''L'' :  largest;  ''M'' : modified'
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Target Schema
                SCHEMA_NAME:
                  type: string
                  maxLength: 128
                  description: Schema name
                LARGE_TABLES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 128
                        description: Table name
                      USED:
                        type: integer
                        format: int64
                        description: Used size in KB
                      RESERVED:
                        type: integer
                        format: int64
                        description: Reserved size in KB
                      DATA:
                        type: integer
                        format: int64
                        description: Data size in KB
                      ROWS:
                        type: integer
                        format: int64
                        description: Number of rows
                      ROWMODCTR:
                        type: integer
                        format: int32
                        description: Row modification counter
                MODIFIED_TABLES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 128
                        description: Table name
                      ROWMODCTR:
                        type: integer
                        format: int32
                        description: Row modification counter
                      ROWS:
                        type: integer
                        format: int64
                        description: Number of rows
                      USED:
                        type: integer
                        format: int64
                        description: Used size in KB
                      RESERVED:
                        type: integer
                        format: int64
                        description: Reserved size in KB
                      DATA:
                        type: integer
                        format: int64
                        description: Data size in KB
              required:
              - ORDER
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LARGE_TABLES:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 128
                          description: Table name
                        USED:
                          type: integer
                          format: int64
                          description: Used size in KB
                        RESERVED:
                          type: integer
                          format: int64
                          description: Reserved size in KB
                        DATA:
                          type: integer
                          format: int64
                          description: Data size in KB
                        ROWS:
                          type: integer
                          format: int64
                          description: Number of rows
                        ROWMODCTR:
                          type: integer
                          format: int32
                          description: Row modification counter
                  MODIFIED_TABLES:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 128
                          description: Table name
                        ROWMODCTR:
                          type: integer
                          format: int32
                          description: Row modification counter
                        ROWS:
                          type: integer
                          format: int64
                          description: Number of rows
                        USED:
                          type: integer
                          format: int64
                          description: Used size in KB
                        RESERVED:
                          type: integer
                          format: int64
                          description: Reserved size in KB
                        DATA:
                          type: integer
                          format: int64
                          description: Data size in KB
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
