I’m looking to build a module that allows for the following behavior:
less ideal option: a button in the designer that when clicked runs the ‘update project, accept gateway changes’ flow.
more ideal: a file watcher that triggers that same flow upon the creation of a specific file, and then deletes the file
most ideal: web API that runs that (if it could somehow live on the gateway that’d be awesome but I imagine that would require a nightmare of message handler complexity).
Where in the SDK would I look for hooks into that designer update flow?
8.3 exposes an endpoint to trigger a projects scan and a config scan. This can be found by running an 8.3 gateway and navigating to http://localhost:8088/openapi. From there you can follow the API Keys guide.
For 8.1, I use Ignition Flint pretty extensively. This supports editing in VS Code and triggers a project scan when you save if the Ignition Project Scan module is enabled. Further, the module exposes an HTTP endpoint that allows you to call the scan if you want to roll your own implementation.
Doesn't exactly answer your question but I hope this helps.