Do you want to control the switch via REST API?