Inheriting route attributes in ASP.NET Web API

added by DotNetKicks
6/26/2016 6:39:21 PM

2 Kicks, 514 Views

I was recently working on a project, where I had a need to inherit routes from a generic base Web API controller. This is not supported by Web API out of the box, but can be enabled with a tiny configuration tweak. Let's have a look.