wlapi icon indicating copy to clipboard operation
wlapi copied to clipboard

Support of the Rest API

Open janz93 opened this issue 8 years ago • 4 comments

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?

janz93 avatar Apr 23 '17 18:04 janz93

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.

arbox avatar Apr 23 '17 19:04 arbox

And who would make the decision? Is that up for the user of the gem?

janz93 avatar Apr 23 '17 21:04 janz93

Yep, it should be a parametric call.

arbox avatar Apr 23 '17 21:04 arbox

What do you mean by that? Could you rephrase that?

janz93 avatar Apr 23 '17 21:04 janz93