Gregw - I'm trying to write my first plugin and...
I'm trying to write my first plugin and I'm struggling with understanding resources from the plugin point of view. I can see the resources API that is available via HTTP GET/POST methods, but I cannot work out how to access it via the app API within the plugin. If I subscribe to context: 'vessels.' + app.selfId with path: 'resources.waypoints.*', then I see deltas when a waypoint is edited (eg in FreeboardSK) and I see it has a path like:
resources.waypoints.602ee562-c6dc-42c3-a775-512597063ca4 with meaningful data. But if I then do an app.getPath or app.getSelfPath for that path, I get nothing. Yet the edited waypoint is now visible in the databrowser with my vessel context selected? And obviously FreeboardSK can see all the waypoints. Do I need to do GET requests to my own server from the plugin or is there a plugin API to get these resources. If so, where is it document... or at least where is the code?