Best practice calling restful webservices and SignalR

Tags: #<Tag:0x00007fc1fdba94a8> #<Tag:0x00007fc1fdba93b8>

Hi,

I’m starting to develop a new binding. I need to call restfull webservices. I’m not a Java expert.

Are there best practices in java to call restful web services? Any Framework or example?

BR

The two primary classes that are supplied/supported by the Framework are HttpUtil (for executing API calls) and Gson (for building/parsing JSON requests/responses). There are lots of examples of the usage of HttpUtil’s executeUrl and Gson’s fromJson and toJson in the openhab-addons repository.

(post withdrawn by author, will be automatically deleted in 96 hours unless flagged)