no dogma blog
no dogma blog
Blog Posts
Podcast
Web API Lambda Course
Polly Course
Photos
Contact
Support this Site
About
RSS
Light
Dark
Automatic
Routing
Multiple Get Methods with the Action Method Selector Attribute in .NET Core 10
I wrote about this back in the days of .NET Core 2.0. How to do this has changed in .NET 10.
Sep 18, 2026
#
WebApi
,
.NET
,
ActionMethodSelectorAttribute
,
Routing
Multiple Get Methods with the Action Method Selector Attribute in .NET Core
In .NET Core Web Api it is not possible for the routing mechanism to distinguish between two action methods with different query string parameters. But with the help of an ActionMethodSelectorAttribute you can tell the methods apart.
Aug 15, 2017
#
dotNet Core
,
AspNet
,
Routing
,
WebApi
,
ActionMethodSelectorAttribute
Web Api Routing in .NET Core
Full source code available here. Routing in .NET Core Web Api (1.1 and 2) is a little different than in earlier versions. I’ve written about this a few times, you can find those posts here.
Jul 15, 2017
#
dotNet Core
,
AspNet
,
Routing
,
WebApi
Web API 2 Controller with multiple GET methods - part 2
I have two other posts on multiple GET methods, one for ASP.NET 5 Web Api, and another for Web Api 2. Download full source code. A few months ago I wrote a post explaining how to create a controller with multiple GET methods.
Feb 4, 2017
#
AspNet
,
Attribute Routing
,
HTTP Verbs
,
Routing
,
WebApi
Web API 2 Controller with multiple get methods
I have two other posts on multiple GET methods, one for ASP.NET 5 Web Api, and another for Web Api 2. It seems that every version of Web API changes how it handles default routes or route prefixes or whatever the next name will be.
Oct 20, 2016
#
AspNet
,
Routing
,
WebApi
ASP.NET 5 Web Api Controller with Multiple get Methods
A simple example of how to create a Web Api controller with multiple get methods in ASP.NET 5.
Jan 15, 2016
#
ASP.NET 5
,
AspNet
,
Routing
,
WebApi
Cite
×