Hacker News new | past | comments | ask | show | jobs | submit login

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 :)




JSON schema describes the format, more like XSD. WSDL is a lot more with definitions of operations, bindings etc.


Things 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.


REST's fundamental pitch is that for a large class of problems, a good format solves problems more easily than a rich set of operations.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: