We are hoping to develop a module that includes a REST endpoint as one of its components. In some cases, we’ll have more than one.
We do have the web development module installed in the environment and have been able to configure that to host the endpoint without issue. However, this approach is problematic because it requires a lot of extra configuration that we’d like to “just be there” when our module is installed, and we’d like to manage the structure via module updates.
We’ve also succeeded in creating a simple servlet and registering it via WebResourceManager.addServlet, which is accessible via http://ignitionaddress:8080/system/MyServlet.
However, we’d like to give this more structure, as there’s potential (almost certainty) that we’ll need to extend the interface out further. I’ve tried many things but haven’t been able to get Ignition to give me path mapping.
For instance, I’d like to have endpoints like the following:
http://localhost:8080/system/MyService1/api/v1/myendpoint1 (with GET, POST, etc)
Still a little green with Java and getting to know the Ignition SDK (.NET crossover guy working here) so please consider that with your answer.
Thanks in advance.