Support of the Rest API
I would like to how the rest api should be included. Should there be a configuration where you can choose what endpoint (soap or rest) the gem should use? Or should there be a check if one endpoint is not responding as expected try the other one?
I think we should rename the old class to the SoapAPI, create the new one to RestAPI and use Delegation via the API class which could decide then how to route the requests.
And who would make the decision? Is that up for the user of the gem?
Yep, it should be a parametric call.
What do you mean by that? Could you rephrase that?