4 ms·
Hmmm....JSON documents (jsonSpec) describing the restful services is the new WSDL, feels like 2002 all over again. I think too many people consume REST APIs in
by taude 14y ago
Hmmm....JSON documents (jsonSpec) describing the restful services is the new WSDL, feels like 2002 all over again.
I think too many people consume REST APIs in different manners, utilizing different data in unique relations. This is the beauty of it.
- taude 14y agowhoops, just saw other comments on the whole, feels like WSDL all over again.
- mtts 14y agoWell, to be fair, JSON is at least a lot less verbose than WSDL. So there's that.
- jebblue 14y agoWSDL describes a pact between a client and a server so they can't screw it up. Comparing WSDL to WADL would make sense. JSON just describes objects in compact notation. Comparing JSON to XML would make sense when XML is only used to describe objects and nothing more. WSDL and WADL and HTML are all XML derivatives. WSDL and WADL could never exist or HTML for that matter if trying to use JSON to describe them since that's not what JSON was designed for.
- mtts 14y agoWSDL is an object notation for objects that describe what a web service should do. This could just as well be done in JSON. It would be marginally less verbose, too :-) Oh, and it's perfectly feasible to translate a well formed HTML document into some sort of JSON object. After all, HTML is just a set of tags with values, no?