Hi
I am currently developing a plugin for version 3.8. I am trying to add Web Api to the plugin so it can be reached from any external source and talk directly to the Api Controllers in my plugin.
I have read through your documentation and forums and can not find anything regarding this. It might just be me not using correct search terms. I have referenced Web.Api and can inherit from ApiController. I have specified a route on top of the controller.
However it does seem like I am missing something in the lines off:
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
I will be doing my own authentication based on a secret and API key configured in the plugin Configure.
I am not sure. I am a junior developer so I might be overlooking the obvious.
Any help would be greatly appreciated.