Here is the reference on how to still do that in OH2 from a standard GET request.
example from https://github.com/openhab/openhab1-addons/wiki/Samples-REST
http://192.168.1.1:8080/classicui/CMD?My_Switch=OFF
(the CMD moved to /classicui/CMD)
Here is the reference on how to still do that in OH2 from a standard GET request.
example from https://github.com/openhab/openhab1-addons/wiki/Samples-REST
http://192.168.1.1:8080/classicui/CMD?My_Switch=OFF
(the CMD moved to /classicui/CMD)