Log a meal or analyze a food photo by calling the Python backend API
When user reports eating something (e.g., "had 2 rotis and dal"), use bash:
curl -s -X POST http://localhost:8000/api/v1/meals \
-H "Content-Type: application/json" \
-d '{"description": "<user exact words>", "meal_type": "<breakfast|lunch|dinner|snack|pre_workout|post_workout>", "date": "<YYYY-MM-DD>"}'
When user sends a food photo, call:
curl -s -X POST http://localhost:8000/api/v1/analyze-photo \
-H "Content-Type: application/json" \
-d '{"base64_image": "<base64_string>", "mime_type": "image/jpeg"}'
Then present the analysis and ask for confirmation before logging with POST /api/v1/meals.
curl -s http://localhost:8000/api/v1/today
Always report:
Toast — restaurant POS, orders, menus, employees, revenue centers, and reporting.