Attribute Routing in ASP.NET Web API 2 | The ASP.NET Site
Notice that some of the constraints, such as "min", take arguments in parentheses. You can apply multiple constraints to a parameter, separated by a colon. [Route("users/{id:int:min(1)}")] public User GetUserById(int id) { ... } Custom Route Constraints Y...