Custom Method Names in Web Api?

Imported from the CodePlex archive for reference purposes. Support for MvcCodeRouting has ended.

Commented on
Hi Max,

Does your framework support this scenario?

http://stackoverflow.com/questions/9569270/custom-method-names-in-asp-net-web-api

Thanks,
Wade
Commented on link
Yes, you have to use an HTTP verb attribute such as [HttpGet] so the framework knows the method name is an action name and not an HTTP verb name.

Let me know if it works.
Commented on link
Some initial confusion over which HTTP verb attribute namespace to use (System.Web.Mvc or System.Web.Http). I decided the latter was the one that is needed. Added the attributes and the custom web api routes showed right up in routes.axd.

Very cool... Thanks!