Manoj Kalla
Can we keep Minimal API and Tradtional API together in same project?

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?

By Manoj Kalla in .NET on Oct 03 2024
  • Jignesh Kumar
    Dec, 2024 31

    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.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS