A minimal API with a single responsibility: accept structured requests, return structured responses, and keep the core logic testable and replaceable.
Key decisions
• Keep the endpoint surface small (one route, clear payload).
• Separate DTOs from internal logic so the model can evolve.
• Prefer predictable rules mode first; ML mode can be swapped in later.
• Build with testing in mind (pure functions where possible).
Tech
C#ASP.NETMinimal APIsDTOsTesting
Next steps
• Add validation and error contracts.
• Add persistence (simple store) to track inputs/outputs.
• Add a second classifier implementation behind an interface.