Best practice calling restful webservices and SignalR


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?


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.