MealRated
v1.0.0

An event that is raised whenever a customer rates a meal, event body changes according to the rating data combination.
MealRated Schema (yml)
openapi: 3.0.0
info:
  version: "1.0.0"
  title: MealRated
paths: {}
components:
  schemas:
    MealRated:
      type: object
      required:
        - metadata
        - data
      properties:
        data:
          "$ref": "#/components/schemas/Data"
        metadata:
          "$ref": "#/components/schemas/Metadata"
    Data:
      type: object
      required:
        - customer
        - driver
        - delivery
        - rating

      properties:
        customer:
          type: object
          required:
            - id
            - name
            - email
            - phoneNumber
            - lat
            - lng
          properties:
            id:
              type: string
            name:
              type: string
            email:
              type: string
            phoneNumber:
              type: string
            lat:
              type: number
            lng:
              type: number
        driver:
          type: object
          properties:
            name:
              type: string
        delivery:
          type: object
          properties:
            kitchen:
              type: string
        rating:
          type: object
          properties:
            mealName:
              type: string
            ratingFactors:
              type: array
              items:
                type: string
            ratingTitle:
              type: string
            rating:
              type: number
            review:
              type: string
            ratingTag:
              type: string

    Metadata:
      type: object
      required:
        - serviceFunction
        - version
      properties:
        serviceFunction:
          type: string
        version:
          type: string
Edit this pageLast updated on 2024/4/2