Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Dan Roth Takes Us on a Deep Dive into Web API
Dec 04, 2012 at 9:33 AM@John Farrar:
There were some typos in my message above...
In WebApiConfig.cs configure a new route to create a route where the map looks like this:
config.Routes.MapHttpRoute( name: "FAQ", routeTemplate: "api/faq/{controller}/{id}", defaults: new { id = RouteParameter.Optional }I then added a new folder in the Controllers folder called faq. Then added my WebApiController called QuestionsController in the default namespace (MvcApplication1.Controllers.faq) and accessed it via http://localhost:61604/api/faq/Questions and I got my string values. I placed the route above the default route.