Send http json command on switch

I am just migrating from domoticz and have a bunch of espeasy flashed sonoffs lying around.
In domoticz I could control them by assigning the required json commands to specific switch

for example
when switch on send,12,1

when switch off,12,0

Is this also possible in openhab?
I would rather not use mqtt if possible.

Is there another possibility to control my devices?

Tank you for you help.

Yes, you can use the HTTP Binding.

Easy to do it with http binding, but why don’t you want to use mqtt?

Fyi: this:,12,1 is no json…