---
title: "RatingSummary"
url: "https://developer.migros.ch/apis/ratings-8/versions/47f7210f-ae8e-42fc-b41c-393bebe224ae/schemas/RatingSummary"
---

> Full API specification: https://developer.migros.ch/apis/ratings-8/versions/47f7210f-ae8e-42fc-b41c-393bebe224ae.md

# RatingSummary

Aggregation with count and average of ratings for a given object. This model is used to save ratings in the database and to display ratings of items (product, etc.) in the API.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Ratings
  version: "8"
servers:
  - description: Public Kong Gateway URL
    url: https://api.migros.ch
components:
  schemas:
    RatingSummary:
      description: >-
        Aggregation with count and average of ratings for a given object.


        This model is used to save ratings in the database and to display
        ratings of items (product, etc.) in the API.
      properties:
        average:
          format: float
          type: number
        count:
          type: integer
        item_id:
          type: string
        modified:
          description: Last modified date.
          format: date-time
          type: string
        type:
          description: Average rating on the given item.
          type: string
      required:
        - itemId
        - type
      type: object
```
