3 ms·
I basically loathe code generators in general. :) JSON Schema gives you the equivalent of WSDL. There are various libraries that will take a schema and create
by rswail 5y ago
I basically loathe code generators in general. :)
JSON Schema gives you the equivalent of WSDL. There are various libraries that will take a schema and create the strongly typed objects in the language of your choice.
Theoretically, if you have "Code on Demand", your client can ask the server for the code to handle a media type :)
- bouke 5y agoJSON schema describes the format, more like XSD. WSDL is a lot more with definitions of operations, bindings etc.
- morelisp 5y agoREST's fundamental pitch is that for a large class of problems, a good format solves problems more easily than a rich set of operations.
- brabel 5y agoThings like grpc and GraphQL seem to be the descendants of SOAP/WSDL. GraphQL is quite nice as it kind of has the best of both worlds: a strongly typed schema for data and operations, while being fairly close to a simple JSON/HTTP API.