Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can also try <a href="https://github.com/mccalltd/AttributeRouting" rel="nofollow noreferrer">AttributeRouting</a>, which is available from <a href="https://github.com/mccalltd/AttributeRouting" rel="nofollow noreferrer">github</a> or via <a href="http://nuget.org/List/Packages/AttributeRouting" rel="nofollow noreferrer">nuget</a>. </p> <p>This is a shameless plug, as I am the project author. But dang if I'm not very happy using it. You might be too. There is plenty of documentation and sample code in the github repository <a href="https://github.com/mccalltd/AttributeRouting/wiki" rel="nofollow noreferrer">wiki</a>.</p> <p>With this library, you can do a lot:</p> <ul> <li>Decorate your actions with GET, POST, PUT, and DELETE attributes.</li> <li>Map multiple routes to a single action, ordering them with an Order property.</li> <li>Specify route defaults and constraints using attributes.</li> <li>Specify optional params with a simple ? token before the parameter name.</li> <li>Specify the route name for supporting named routes.</li> <li>Define MVC areas on a controller or base controller.</li> <li>Group or nest your routes together using route prefixes applied to a controller or base controller.</li> <li>Support legacy urls.</li> <li>Set the precedence of routes among the routes defined for an action, within a controller, and among controllers and base controllers.</li> <li>Generate lowercase outbound urls automatically.</li> <li>Define your own custom route conventions and apply them on a controller to generate the routes for actions within the controller without boilerplate attributes (think RESTful style).</li> <li>Debug your routes using a supplied HttpHandler.</li> </ul> <p>I'm sure there's some other stuff I'm forgetting. Check it out. It's painless to install via nuget.</p> <p><strong>NOTE: As of 4/16/12, AttributeRouting also supports the new Web API infrastructure.</strong> Just in case you're looking for something that can handle that. <a href="https://stackoverflow.com/users/109458/subkamran">Thanks subkamran</a>!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload