It's just a WHY question as it maybe a miss-concept :(
The following is the default Web API configuration in ASP.net Web Api Project
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
}
}
I tried changing
api / {controller} / {id}
to
# / {controller} / {id}
Not working, the ambitious part is that it's being ignored ( NO 404 ) as if I'm routing to my Home page, however other consumptions worked perfectly like
- / {controller} / {id}
Seems to be an encoding issue miss-concept part, any help ?