Custom Method Names in Web Api?

Oct 28, 2013 at 6:01 PM
Hi Max,

Does your framework support this scenario?

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

Thanks,
Wade
Coordinator
Oct 28, 2013 at 6:10 PM
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.
Marked as answer by maxtoroq on 10/28/2013 at 11:35 AM
Oct 28, 2013 at 6:32 PM
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!