What is minimal API and how is it different from controllers?
- Minimal APIs are lightweight endpoints defined with top-level statements, no
controller classes.
- Ideal for microservices or simple APIs.
- Less ceremony and fewer files.
- Controllers provide richer features (filters, model binding, action results).