by mccutchen on 3/15/11, 4:37 PM with 130 comments
by mikeryan on 3/15/11, 5:13 PM
But then I read the article and I have to admit this is a pretty egregious break with how REST services are supposed to work.
by jcromartie on 3/15/11, 5:16 PM
by vegashacker on 3/15/11, 5:24 PM
I personally find that sometimes I have trouble spotting the "oh! I forgot to make it DELETE instead of GET" bugs. When the parameters of the API are all in the url and/or query, it feels better encapsulated.
(promise I'm not flaming, and I fully expect to get told, yes it matters, and here's why! ;)
by mortice on 3/15/11, 5:03 PM
I died a little inside every time I wrote a 'Restful' servlet there.
by thurn on 3/15/11, 6:00 PM
by hoop on 3/15/11, 8:32 PM
To be fair, I thought we were at this point already. It seems safer to assume that when one advertises a "RESTful API" they are really referring to a "REST-like" API which basically means "Hey, we don't use sessions!"
While I believe that the term is already diluted to that point, I still think it's valid to point out when people are doing it wrong.
by csears on 3/15/11, 5:30 PM
Most REST API consumers today are more like CURL than a web browser. In the CURL-like case, the RPC pattern works quite well. HATEOS and other browser-centric REST ideas often just don't fit naturally into a simple API consuming app. People need to move on.
by davidmathers on 3/15/11, 11:39 PM
-- Roy Fielding @ http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hyperte...
by extension on 3/15/11, 7:35 PM
If you want a bucket of cold water over the head on this topic: http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hyperte...
by hinathan on 3/15/11, 5:02 PM
by mccutchen on 3/15/11, 4:41 PM
This is a shame, because RESTful APIs are (for me, anyway) usually a joy to build and to use.
by MatthewPhillips on 3/15/11, 7:53 PM
by Stormbringer on 3/16/11, 10:38 AM
All the WSDL and SOAP crap gets auto-generated for you. Thereby eliminating in a single stroke REST's advantage.
Now, it is true that there is some stuff†† you can do with SOAP that you can't do with JAX-WS, but really unless you like making life difficult for yourself then don't.
Especially for a big Java to Java solution there doesn't seem to be any compelling reason to go with REST anymore. Even if everything you do maps exactly to the four SQL ops (select, update, insert, delete) it is still just as easy to use the annotation as it would be to use REST.
†C# has something similar I think.
††Example: JAX-WS is limited to what you can do with a method and parameters in Java. In your SOAP schema you can specify for instance that the array you get passed shall have between 1 and 3 members, two is okay but 4 is right out. Whereas in Java (and hence JAX-WS) if you have an Array parameter, you can't specify that it must have a certain number of elements in it.
by robbles on 3/16/11, 1:27 AM
Is adding new HTTP methods (like PROPFIND, MOVE, COPY, etc.) considered to be RESTful? I always thought you were supposed to structure all actions around the main 6, and add extra functionality in the data payload or query parameters.
by whackberry on 3/15/11, 9:03 PM
Does he have a source for this? Coincidentally I had just read the HTTP 0.9 the other day and I didn't see "method" being used that way at all. I think method, in HTTP, just means "a means to retrieve / put data", not method in the object oriented sense.
by ianloic on 3/17/11, 9:52 PM
by adolph on 3/15/11, 6:21 PM
Rdo: "Yeah, we have POST!"
Thought Palace: "What about the rest?"
by thomasfl on 3/16/11, 6:08 AM
by TorKlingberg on 3/15/11, 8:48 PM
by amitraman1 on 3/15/11, 9:53 PM
"HTTP API that’s not as hard to use as SOAP"
My current employer calls our API ...
... RESTful like .
by sabat on 3/15/11, 5:17 PM
I'm not so sure that "object-oriented" is the right term here, but totally agree with the premise: this isn't REST. It's more like XML-RPC Jr.
by mkramlich on 3/15/11, 11:39 PM
by tariq on 3/15/11, 5:08 PM