5 ms·
How exactly do you think REST is easier to debug and what alternatives are you comparing it to?
by lfischer 9y ago
How exactly do you think REST is easier to debug and what alternatives are you comparing it to?
- ivan_gammel 9y agoCrafting REST request with JSON payload is significantly easier than doing that with SOAP (or, rest it in peace, CORBA).
- ern 9y agoI don't mind a loose JSON REST-ish API, where everything is a GET, POST or (maybe) a PUT, with explicit endpoints to resolve ambiguities. Once people start exhibiting excruciating pedantry in designing their APIs, I'll switch off somewhat.
- deeringc 9y agoThe author was comparing REST to json-rpc. Nowhere in the article does he propose that people use SOA or CORBA.
- ivan_gammel 9y agoThere's no difference between debugging REST and JSON-RPC over HTTP, so there's no point to compare them. The other alternatives, that I've mentioned, are less easy to debug.
- 0x445442 9y agoThat is highly dependent on the language you are using. Many languages support auto generation of consumer and producer code based off of WSDLs. And AFAIK, most languages that don't have the auto gen tools do have XPATH libraries for easily manipulating templated SOAP requests.
- ivan_gammel 9y agoIt's still much faster to run curl with JSON, than to run auto-gen tool and write a whole test program to call an API.
- mamon 9y agoHave you ever seen SoapUI tool[1] ? It takes just a few clicks to generate complete set of requests from WSDL (set, as in "one request per each operation"). I think it's much better user experience than hand-crafting json to use with curl. [1] https://www.soapui.org/ https://www.soapui.org/