Tea Advisor API — Flask REST service with JSON endpoints
A lightweight Flask REST API that returns tea data and simple recommendations. Includes GET endpoints for listing teas and details, and a POST endpoint that suggests a tea by taste profile (e.g., “floral”, “citrus”, “strong”). Built to demonstrate REST design, JSON handling, input validation, and basic filtering. #GET /api/teas — list teas with pagination & filters (type, taste)
GET /api/teas/ — tea details
POST /api/recommend — body { "taste": "citrus", "caffeine": "low" } → returns best match
Error handling with clear JSON messages
Simple in-memory store (can be swapped for DB)
GET /api/teas/ — tea details
POST /api/recommend — body { "taste": "citrus", "caffeine": "low" } → returns best match
Error handling with clear JSON messages
Simple in-memory store (can be swapped for DB)