Gregw - I'm trying to convert my plugin from v1...
I'm trying to convert my plugin from v1 to v2 APIs, I think I understand the server side well enough, and I can see how client side works with websocket. But I can work out how to call a v2 API with a HTTP Put? So if I have a handler registered like
app.registerPutHandler('vessels.self', 'navigation.racing.startLinePort', setStartLinePort) then what URL should I put to? /signalk/v2/api with the body {context :"", path : "vessles.self.navigation.racing.startLinePort", value : newPosition} ? OR is the plugin name and the path in the URI and the body is just the value? I've tried several combinations and can't work it out. Any pointers (or links to relevant documentation) greatly appreciated!