Common REST Mistakes
prescod.net
Common REST Mistakes
1–10 of 41 posts
Re: Common REST Mistakes
#2Re: Common REST Mistakes
#3Re: Common REST Mistakes
#4Re: Common REST Mistakes
#5I have a much easier time finding a cut-and-paste error from email in http://bob.com/posts/37/comments/79 than in http://bob.com/postthing/1f724c302a3b69ef9327313adb269a8d, even if the latter is convenient when the site later restructures things or adds a server.
Re: Common REST Mistakes
#6For example, "your public API should not depend on the structure of your URIs. Instead there would typically be a single XML file that points to the components of your service." It's difficult to understand this kind of point without an example in hand - preferably an example taken from an actual website.
The whole list presupposes a familiarity with REST theory and jargon. And the assertion that 'sessions are irrelevant' instantly raises my suspicions about the author's relationship with reality.
Re: Common REST Mistakes
#7Point 6 (Sessions are Irrelevant) is really tricky. Fielding says much the same about sessions as this article but there's a lot of room for clarification. http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm
Of course, there can be authentication and authorization but, really, there's no need for a session since you have to do those two on each http request anyway.
Re: Common REST Mistakes
#8Re: Common REST Mistakes
#9Several of these points are highly prescriptive without offering any motivation for the advice. For example, "your public API should not depend on the structure of your URIs. Instead there would typically be a single XML file that points to the components of your service." It's difficult to understand this kind of point without an example in hand - preferably an example taken from an actual website. The whole list pr…
I think when most normal people say REST, they simply mean some sort of vague messages-over-HTTP metaformat that doesn't necessarily enforce odd restrictions about POST vs. PUT, is somewhat self-documenting and easy to work with due to the limited scope of the medium, etc.
Re: Common REST Mistakes
#10I may be missing something very obvious, but I just don't see how this should/can/might look. (Just to be explicit, I'm not trolling. I'm confused.)