I am trying to route a request
/api/someName.xml?param1=123
I tried routing all requests to my default controller - MyController and it will route a call like:
http://localhost:54865/api/someName?param1=312.1232¶m2=13.321
but I need not route a request like
http://localhost:54865/api/someName.xml?param1=312.1232¶m2=13.321
I am not able to do that right now with the following Route map entry:
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{*uri}",
defaults: new { controller = "MyController"});
how can I allow endpoints with extension (someName.xml) to be routed?
Thanks