How to make Web API routing ignore parameters when matching — Capable Devs


I recently had a scenario where I was using an action filter to pass parameter values into a Web API controller’s parameters. The problem I ran into is that unless you do some hacky stuff, there isn’t an option to do this OOTB. By hacky, I mean defaulting values like [HttpGet] [Route(“”)] public IHttpActionResult Get(string […]

via How to make Web API routing ignore parameters when matching — Capable Devs

Advertisements