AttributeRouting icon indicating copy to clipboard operation
AttributeRouting copied to clipboard

Define your routes using attributes on actions in ASP.NET MVC and Web API.

Results 78 AttributeRouting issues
Sort by recently updated
recently updated
newest added

Hello, I have the following AR: ``` namespace MvcSite.Areas.Cms.Controllers.Api { [RouteArea("Cms", AreaUrl = "{culture}/Cms"), RoutePrefix("Api/Access")] public class UserController : ApiController { [POST("Users/{slug}/Unlock"), HttpPost] public String Unlock(String slug) { } }...

Hello, I have the following action: ``` [GET("Notes?{p:int:min(1)}&{t:notetype?}")] public virtual ActionResult Index(Int32 p = 1, Int32? t = null) { } ``` And the following on my configuration: ``` x.InlineRouteConstraints.Add("notetype",...

todo

I've just upgraded from v2.5.3 and my whole application's routing just stopped working. Besides issue 232 (declaring default now doesn't cause parameter to become optional), it appeared that defaults don't...

todo
bug

Want to get rid of SpecFlow. Could better unit test things, too. At a minimum: - test GetRouteData and GetVirtualPath for inbound/outbound routing, - constraints, reflector, configuration, etc. - Create...

todo

Need/want to reorganize: - Web API bits can be centralized in AR.Web.Http - Non-Web API bits will go in AR.Web.Mvc - RouteAreaAttribute will go in AR.Web.Mvc - Improve parsing. Pass...

todo

Need to do this in tests and MVC

todo

Just upgraded to AR 3.5.6.0, and now the following code starts to fail: var convention = type.GetCustomAttribute(true); var routeAreaAttribute = type.GetCustomAttribute(true) ?? convention.SafeGet(x => x.GetDefaultRouteArea(type)); (can't remember where I got...

I have a plug in style application and I would like the ability to just pass a collection of assemblies into the AddRoutesFromAssembly method. Currently I am looping through and...

[Route("", ActionPrecedence = 1, TranslationKey = "customkey1")] [Route("", ActionPrecedence = 2, TranslationKey = "customkey2")] public ActionResult List(string p1, string p2, string p3) { } How can I make Localization and...

discovery