Author: .NET Web Development and Tools Blog | Posted on: 9/23/2013 5:00:00 AM | Views : 1576

For the VS2013 Preview release, we published two articles about Attribute Routing for Web API 2: · http://www.asp.net/web-api/overview/web-api-routing-and-actions/attribute-routing-in-web-api-2 · http://www.asp.net/web-api/overview/web-api-routing-and-actions/create-a-rest-api-with-attribute-routing The VS2013 RC release includes more changes and features for attribute routing: 1. Explicitly declare a route template on an action In RC, if attribute routing is enabled, you must explicitly declare the attribute for the desired actions. In Preview, you don’t have to. 2. Added support for overriding RoutePrefix attribute. In the following controller code, the action to ‘get all the books’ has a route template like “~/”. This overrides the RoutePrefix...(read more)

Go to the complete details ...