|
|
|
|
|
by gunderson
6511 days ago
|
|
Right it may work for you, which is fine. The point of REST that I thought really stood out in the comments was the one about caching. If you know that any GET request can be cached subject to whatever is in the expires header or etag, that is hugely useful information when scaling. REST is not a straight jacket, it's just a simple way of making the /site/url/you/use + the method mean something consistent and logical. |
|
For example, the FriendFeed api includes a method that fetches multiple feeds at once: http://friendfeed.com/api/feed/user?nickname=paul,bret,jim&#... Where should one user PUT their updates such that a simple HTTP cache will know to invalidate that GET? It's not possible. The cache must understand the internals of the system in order to do proper invalidation here.