Can we keep Minimal API and Tradtional API together in same project?Can developer create Minimal API, Tradtional API (controller base) in same project using VS 2022 and .NET 8?
Yes, it is possible to use both Minimal API and traditional (Controller-based) API in the same project with Visual Studio 2022 and .NET 8.
Benefits of using both in single project :
You get the simplicity and performance of minimal APIs for lightweight services.
You can still leverage the full power of MVC controllers when you need more complex features such as model binding, validation, action filters, etc.