openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_ATTR_STATISTICS:
    post:
      tags:
      - TREX_RFC_AE
      summary: get attribute statistics
      operationId: /rfc/TREX_RFC_GET_ATTR_STATISTICS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ATTR_NAME:
                  type: string
                  format: byte
                  description: Attribute name
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                LANGUAGE:
                  type: string
                  format: byte
                  description: Language
                LEVEL:
                  type: integer
                  format: int64
                  description: Level of detail
                NEED_VALUE_COUNTS:
                  type: integer
                  format: int64
                  description: '0: false, 1: true'
                ATTR_STATISTICS:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_TYPE:
                        type: string
                        format: byte
                        description: ''
                      DOCUMENT_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      VALUE_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      PAIR_COUNTER:
                        type: integer
                        format: int64
                        description: ''
                      MAX_DOCID:
                        type: integer
                        format: int64
                        description: ''
                      MEAN:
                        type: string
                        format: byte
                        description: ''
                      MEDIAN:
                        type: string
                        format: byte
                        description: ''
                      MAXIMUM:
                        type: string
                        format: byte
                        description: ''
                      MINIMUM:
                        type: string
                        format: byte
                        description: ''
                      Q1_QUANTILE:
                        type: string
                        format: byte
                        description: ''
                      Q3_QUANTILE:
                        type: string
                        format: byte
                        description: ''
                      SUM:
                        type: string
                        format: byte
                        description: ''
              required:
              - ATTR_NAME
              - INDEX_ID
              - LANGUAGE
              - LEVEL
              - NEED_VALUE_COUNTS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Returncode
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Returntext
                  ATTR_STATISTICS:
                    type: array
                    items:
                      type: object
                      properties:
                        ATTR_TYPE:
                          type: string
                          format: byte
                          description: ''
                        DOCUMENT_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        VALUE_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        PAIR_COUNTER:
                          type: integer
                          format: int64
                          description: ''
                        MAX_DOCID:
                          type: integer
                          format: int64
                          description: ''
                        MEAN:
                          type: string
                          format: byte
                          description: ''
                        MEDIAN:
                          type: string
                          format: byte
                          description: ''
                        MAXIMUM:
                          type: string
                          format: byte
                          description: ''
                        MINIMUM:
                          type: string
                          format: byte
                          description: ''
                        Q1_QUANTILE:
                          type: string
                          format: byte
                          description: ''
                        Q3_QUANTILE:
                          type: string
                          format: byte
                          description: ''
                        SUM:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
