HI,
Has anyone gotten web api OData working inside DNN8? I believe that to get this to work, there would need to be a change to the interface IMapRoute in the DotNetNuke.web.api source, to add code to map an OData route like the code below.
public interface IMapRoute
{
IList<Route> MapHttpRoute(string moduleFolderName, string routeName, string url, string[] namespaces);
IList<Route> MapHttpRoute(string moduleFolderName, string routeName, string url, object defaults, string[] namespaces);
IList<Route> MapHttpRoute(string moduleFolderName, string routeName, string url, object defaults, object constraints, string[] namespaces);
IList<Route> MapODataRoute(string moduleFolderName, string routeName, string routePrefix, Microsoft.OData.Edm.IEdmModel model);
}
Can I just download the source from Codeplex, and then get the DnnWebApi source and add it as a project, then add the Microsoft package for OData, and add the calls for OData and then recompile the DnnWebApi dll and see if that works? I'm hoping that if I can do the groundwork I might be able to get DNN to add OData in a future release.
One problem with this approach though is that when I did download the latest source code from Codeplex, last week, it did not compile.
What do you think of that? Is there an easier way?
Thanks,
Cheryl Bearden