Skip to content

Controller based APIs are deprecated? #62092

Closed Answered by gfoidl
ladeak asked this question in General

You must be logged in to vote

Personal opinion follows.

do you start adding new endpoints with minimal apis, or you keep adding controller based endpoint?

When it's a new featue, then I'd use minimal APIs.
Extending existing features, then I'd add it to the controller.

Would you strlart migrating controller apis on touch basis?

When it's easy to migrate, then I'd do it for smaller controllers. But w/ a distinct PR, so that the "touch basis" change doesn't get noise with the migration.


I don't know what your controller / actions are doing. When you have applied a pattern like CQRS or at least anything that offloads the work to specific handlers, then the migration should be quite easy, as it's basically just build…

Replies: 1 comment 3 replies

You must be logged in to vote
3 replies
@ladeak

@gfoidl

gfoidl May 24, 2025
Collaborator

Answer selected by ladeak
@ladeak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
2 participants