Live data from Hacker News

Stop Writing REST API Clients

ttezel.github.com

1–10 of 137 posts

Re: Stop Writing REST API Clients

#5
This is essentially trying to solve the same problem as Swagger. Swagger is "a specification and complete framework implementation for describing, producing, consuming, and visualizing RESTful web services" [1]. Check out the spec on GitHub here [2].

[1]: http://developers.helloreverb.com/swagger/

[2]: https://github.com/wordnik/swagger-core/wiki

Re: Stop Writing REST API Clients

#8
Substitute "XML" for "JSON" and we've now come full circle.

The point about REST is that it is self-describing. And ideally should be using the same URIs as the version people clicking around in Firefox or Chrome see. The API is just the XML or JSON or whatever is flavour of the week version of the HTML version.

(Or we could use embedded data—microformats, microdata, RDFa—and get rid of that distinction.)

Re: Stop Writing REST API Clients

#10
post #6

While this has some benefits, it seems like a slippery slope leading back to SOAP.

Exactly. But to be precise, REST would be the equivalent of SOAP and the format described in this post would be equivalent to WSDL [1].

And then, we'll need a central location to store all of these API descriptors and UDDI [2] will be back with a vengeance.

[1] http://www.w3.org/TR/wsdl

[2] http://en.wikipedia.org/wiki/Universal_Description_Discovery...

Post reply on HN