Yeah, let's do CORBA once again. No thanks.
Stop Writing REST API Clients
41–50 of 137 posts
Re: Stop Writing REST API Clients
#42Am I the only one who doesn't like receiving direct orders from article titles?
I highly recommend you simply accept it as what it is: the way some people communicate, especially online. It's not worth your time/attention/care to think about this.
Re: Stop Writing REST API Clients
#43Re: Stop Writing REST API Clients
#44Am I the only one who doesn't like receiving direct orders from article titles?
Re: Stop Writing REST API Clients
#45Am I the only one who doesn't like receiving direct orders from article titles?
Writing using authoritative language is very common, and widely considered a best practice. I highly recommend you simply accept it as what it is: the way some people communicate, especially online. It's not worth your time/attention/care to think about this.
But it still looks like they pulled some rules out of nowhere and are enforcing them.
Re: Stop Writing REST API Clients
#46Hmmm....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
#47Am I the only one who doesn't like receiving direct orders from article titles?
Re: Stop Writing REST API Clients
#48Substitute "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
#49Re: Stop Writing REST API Clients
#50Substitute "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.)
To paraphrase the OP, "Since so many APIs can be described in similar terms, why don't we have some sort of standard that one can look at to identify how to use the API instead of letting the API speak for itself?"
When you start going down this track, you're not only making things complicated on the client's end of things. On the server side, you're having to maintain two things for the API now. First: the ruleset, ensuring it's 100% to spec lest a client fail. Second: the code generating the response in the first place.
I've built clients and servers for both RESTful and SOAPy APIs and I can say I would take REST any day.