Is it true that \"ApiController
will get deprecated in .NET Core\"? Asking since I\'m planning to use it in new projects.
The [ApiController]
attribute actually got added back in ASP.NET Core version 2.1.
Features coupled with the attribute are:
[FromBody]
, [FromRoute]
, ... attributes explicitlyLinks to the docs:
Update
There is also the baseclass ControllerBase
for controllers to inherit from which is suited for api-controllers because it ommits all view-related functionality.