Is there a way to configure routes with conventions?

Topics: Web Api
Jan 19, 2012 at 3:46 PM

I want to make a convention that says "build routes to classes that inherit from XXX and make the route point to the first word of the service class".

Jan 19, 2012 at 3:49 PM
digitalpacman wrote:

I want to make a convention that says "build routes to classes that inherit from XXX and make the route point to the first word of the service class".


Hey dude, I have a solution for this as well.  I'll include it in my sample code.  I should be able to get this done this weekend.

Coordinator
Jan 19, 2012 at 3:51 PM

Sounds like you want to use a convention similar to the convention used for controllers in ASP.NET MVC. The good news is that we are deeply integrating Web API with MVC and we will support the MVC convention out of the box.

Daniel Roth