A guide on using attribute routing in ASP.NET Web API 2 to create controllers with multiple GET methods differentiated by parameter type. Covers how route constraints like `{id:int}` and `{id:Guid}` work, explains the ambiguity problem when routing can't distinguish between `int` and `long`, and shows how to resolve conflicts by adding a path prefix to one of the routes.

3m read timeFrom nodogmablog.bryanhogan.net
Post cover image
Table of contents
Attribute parameter names and type