Live data from Hacker News

Stop Writing REST API Clients

ttezel.github.com

31–40 of 137 posts

Re: Stop Writing REST API Clients

#32

Isn't this what http://json-schema.org aims to provide? Or am I missing something. It's a solid spec.

Json Schema is pretty good at describing data coming through JSON. But describing (REST) APIs requires more. For example a standard way to describe API endpoints with parameters and response types, errors, related models, default/allowable values etc. This was what the OP was referring to and this is what Swagger is trying to do. The Swagger Spec is here with some more details on whats required in addition to JSON Schema to document APIs: https://github.com/wordnik/swagger-core/wiki/API-Declaration Incidentally model/data specifications in swagger spec does map closely with json schema.

Re: Stop Writing REST API Clients

#33
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.

Re: Stop Writing REST API Clients

#35

Am I the only one who doesn't like receiving direct orders from article titles?

I was just thinking that, I hate article titles that are phrased exactly as a command and it's merely a blog post that wants to change an entire body of thought that's well founded.

Re: Stop Writing REST API Clients

#36
post #33

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.

whoops, just saw other comments on the whole, feels like WSDL all over again.

Re: Stop Writing REST API Clients

#38

Am I the only one who doesn't like receiving direct orders from article titles?

Would it help if he prefixed it with "In this article, I argue for why I believe that you should"?

Yes. Assuming guru voice just makes you sound like a blowhard.
Post reply on HN