Closed matthiasschoger closed 10 months ago
Just came to my mind: Would it be better to use the existing getPortForwards function, handle the logic in a logic node and just add a new function to update a port forward? Might fit better into the current code base.
Hello. Great that you would like to contribute. I have already implemented functions that use multiple web requests in same function, for example setOutletPortState So I see no reason that you can't follow the same procedure. That will keep it simple for the users when they will call your new function.
Hi Chris, thanks for the reply.
Will have a look at setOutletPortState and will come back to you if I have any questions.
Best regards Matthias
Yeah sure, no problem 😀
Hi,
I would like to contribute and add a new feature to modify the target host/port of a port forward.
Looking through the Unifi REST API, I would use the following approach:
As you can see, this would require two REST requests to accomplish.
Thanks in advance Matt