I am an experienced .NET developer, taking the first steps in .NET Core over the past few days, more specifically in creating a RESTful API using ASP.net Core.
I know that there are 2 possible routing options - Console Routing (traditional) and Attribute Based Routing (newer).
I read that the recommendation of the core ASP.net team is to use attribute-based routing for the API , rather than traditional conventional routing, which is more suitable for MVC applications.
I would really like to understand - Why ?
Attribute-based routing seems to make us write more code, ending up with the same behavior as regular routing.
source
share