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

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

# RatingSummaryCollection

A collection rating summaries.

## 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:
    AbstractCollection:
      description: A generic collection of elements.
    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
    RatingSummaryCollection:
      allOf:
        - $ref: "#/components/schemas/AbstractCollection"
        - properties:
            rating_summaries:
              items:
                $ref: "#/components/schemas/RatingSummary"
              type: array
          type: object
      description: A collection rating summaries.
      required:
        - rating_summaries
      type: object
```
