openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_DENSITY:
    post:
      tags:
      - SFMSS_DBUTIL
      summary: Get density information on a table
      operationId: /rfc/MSS_GET_DENSITY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                COLLIST:
                  type: string
                  maxLength: 3000
                  description: List of columns
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: DBCON name
                DB_NAME:
                  type: string
                  maxLength: 128
                  description: Database name
                NUMROWS:
                  type: integer
                  format: int64
                  description: Number of rows
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Target Schema
                SCHEMA_NAME:
                  type: string
                  maxLength: 128
                  description: Schema name
                TABLE_NAME:
                  type: string
                  maxLength: 128
                  description: Table name
              required:
              - COLLIST
              - NUMROWS
              - TABLE_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DENSITY_INFO:
                    type: object
                    properties:
                      DENSITY:
                        type: integer
                        format: int64
                        description: Column density
                      TUPLES:
                        type: integer
                        format: int64
                        description: Number of groups
                      AVERAGE:
                        type: integer
                        format: int64
                        description: Average rowcount in group
                      STDDEV:
                        type: integer
                        format: int64
                        description: Standard deviation of rowcounts
                      MAXIMUM:
                        type: integer
                        format: int64
                        description: Maximum rowcount in group
                      MINIMUM:
                        type: integer
                        format: int64
                        description: Minimum rowcount in group
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
