openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_ATTR_VALUE_COUNTS:
    post:
      tags:
      - TREX_RFC_AE
      summary: get attribute statistics
      operationId: /rfc/TREX_RFC_GET_ATTR_VALUE_COUNTS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ATTR_NAME:
                  type: string
                  format: byte
                  description: Attribute name
                GET_STATISTICS:
                  type: integer
                  format: int64
                  description: Attribute name
                INDEX_ID:
                  type: string
                  format: byte
                  description: IndexId
                LANGUAGE:
                  type: string
                  format: byte
                  description: Language
                MAX_RESULTS:
                  type: integer
                  format: int64
                  description: Attribute name
                NUMBER_OF_PAIRS:
                  type: integer
                  format: int64
                  description: Attribute name
                ATTR_STATISTICS:
                  type: array
                  items:
                    type: object
                    properties:
                      ATTR_TYPE:
                        type: string
                        format: byte
                        description: ''
                      COUNT:
                        type: integer
                        format: int64
                        description: ''
                      NUM_VALUES:
                        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: ''
                      SUM:
                        type: string
                        format: byte
                        description: ''
                      MODULUS:
                        type: string
                        format: byte
                        description: ''
                      MODULUS_COUNT:
                        type: integer
                        format: int64
                        description: ''
                ATTR_VALUE_COUNTS:
                  type: array
                  items:
                    type: object
                    properties:
                      VALUE1:
                        type: string
                        format: byte
                        description: ''
                      VALUE2:
                        type: string
                        format: byte
                        description: ''
                      COUNT:
                        type: integer
                        format: int64
                        description: ''
              required:
              - ATTR_NAME
              - GET_STATISTICS
              - INDEX_ID
              - LANGUAGE
              - MAX_RESULTS
              - NUMBER_OF_PAIRS
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_NUMBER_OF_PAIRS:
                    type: integer
                    format: int64
                    description: Returntext
                  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: ''
                        COUNT:
                          type: integer
                          format: int64
                          description: ''
                        NUM_VALUES:
                          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: ''
                        SUM:
                          type: string
                          format: byte
                          description: ''
                        MODULUS:
                          type: string
                          format: byte
                          description: ''
                        MODULUS_COUNT:
                          type: integer
                          format: int64
                          description: ''
                  ATTR_VALUE_COUNTS:
                    type: array
                    items:
                      type: object
                      properties:
                        VALUE1:
                          type: string
                          format: byte
                          description: ''
                        VALUE2:
                          type: string
                          format: byte
                          description: ''
                        COUNT:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
