Easiest way to control TV over HTTP calls

Hi all, I was looking through documentation and it seems that there are multiple ways to develop apps and integrate them with TV.
I wanted to ask what is the simplest option if I would like to control Samsung TV (turn on/off, source, volume) from local network, ideally to make simple rest API calls?