coryhouse / coryhouse/react-restaurant-scriptpro
Create ratings query factory (getRatingsByFoodId)
Open
enhancement
phase-7-ratings
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Goal
Add a query factory for ratings filtered by `foodId`. Seed `db.json` with a few ratings to make the UI realistic.
## Acceptance criteria
- [ ] `getRatingsByFoodIdQueryOptions(foodId)` exported
- [ ] Endpoint returns ratings filtered to one food
- [ ] Response validated with the Zod array schema
- [ ] `db.json` seeded with ratings across multiple foods
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.