-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Labels
Beta-CampaignCampaign: Beta-CampaignCampaign: Beta-Campaign
Description
Restaurants will want to know how well their food is performing on the platform.
Requirements:
- Create a
GET /api/restaurant/analyticsendpoint. - Write a MongoDB aggregation pipeline that queries the
UserSwipecollection. - Calculate the total number of impressions (likes + passes) and the "Match Rate" (likes / total impressions) for each of the restaurant's food items.
Acceptance Criteria: - Pipeline efficiently groups data by
food_idand calculates percentages. - Endpoint returns an array of objects containing the food name, total views, likes, passes, and conversion rate.
- Endpoint is restricted to the authenticated restaurant owner.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Beta-CampaignCampaign: Beta-CampaignCampaign: Beta-Campaign