3 ms·
While I agree with you that that's certainly an interesting part of the split between RPC and REST, you might be curious to know that Fielding doesn't think so.
by steveklabnik 13y ago
While I agree with you that that's certainly an interesting part of the split between RPC and REST, you might be curious to know that Fielding doesn't think so.
> What makes HTTP significantly different from RPC is that the requests are directed to resources using a generic interface with standard semantics that can be interpreted by intermediaries almost as well as by the machines that originate services.
http://www.ics.uci.edu/~fielding/pubs/dissertation/evaluation.htm#sec_6_5_2 http://www.ics.uci.edu/~fielding/pubs/dissertation/evaluatio...
- ademarre 13y agoInteresting, thank you; but in that quote isn't Fielding actually comparing RPC and HTTP, not REST?
- steveklabnik 13y agoYes, you're right, I was being a bit sloppy there. The Uniform Interface (and Layered System) is one of the ways in which HTTP does follow RESTful principles, though, so the thrust is still the same.
- ademarre 13y agoAgreed. But I think it's a stretch to conclude that Fielding doesn't think the hypermedia principle is an important distinction between RPC and REST: From his blog post I linked to earlier, titled REST APIs must be hypertext-driven [0]: > "I am getting frustrated by the number of people calling any HTTP-based interface a REST API. Today’s example is the SocialSite REST API. That is RPC. It screams RPC. There is so much coupling on display that it should be given an X rating. "What needs to be done to make the REST architectural style clear on the notion that hypertext is a constraint?" [0] http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hypertext-driven http://roy.gbiv.com/untangled/2008/rest-apis-must-be-hyperte...