fixed issues related to the web api not being able to get the route template of a query request;