How to change an openhab switch with http-commands?

Install the REST API Documentation from under the Misc tab in PaperUI. A new UI will show up on your landing page which includes the fully documented and interactive REST API calls that are possible.