Re: Bookmark 'stability'
Jan Algermissen <[email protected]>
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <[email protected]> |
Hi Andrei, On Sep 22, 2012, at 8:29 AM, [email protected] wrote: > I see that nobody mentions link relations. > http://www.w3.org/TR/html5/links.html#link-type-bookmark defines the "bookmark" relation. > > Indeed, the server cannot control whether a URI is bookmarked or not, but it should definitely advertise its capabilities. In this case, the capability of maintaining a URI as an entry point for resource X "forever". > > The only resource that has the bookmark contract from the start is the API's entry point (root). For the rest, may them be of type bookmark or not, the client needs to know the freedoms and responsibilities it has for bookmarking them. Yes, and generally, a client can (und often will - look at your bookmarks folder :-) bookmark any URI for later use as an entry point. > > The whole idea of a REST API is to reduce coupling. Why create unnecessary URI coupling? Bookmarking is an inherent aspect of RESTful systems. Bookmarking is not coupling. It is the other way round: because clients will bookmark, servers pretty much have an implicit obligation to maintain URIs over time once they 'got out'. May question was circeling around the issue whether this ws more true for some URIs than for others. Jan > > --- In [email protected], Jan Algermissen <jan.algermissen@...> wrote: > > > > Hi, > > > > one of the obligations a server has in a RESTful system (IMHO > > anyway) is to keep those URIs stable that make good bookmarks. > > (as in "Cool URIs don't change"). [1] > > > > Some questions keep bugging me: > > > > - Should all URIs a server makes known to clients be considered > > possible bookmarks? > > If not, how do I differentiate between those that are and those > > that are not? > > > > - Given that the applications executed by the clients are not known to > > the server, how can the server possibly know what the steady > > states of all those applications are? And hence, what URIs the > > clients might consider to be bookmarks? > > > > Or is it as simple as > > > > "Bookmarks are resource identifiers from a prior interaction. > > They are bread-crumbs. Sometimes they get eaten." :-) [2] > > > > Jan > > > > > > [1] And I find it particularly interesting that in this aspect REST is (implicitly) constraining *over time*. Which no other style does, AFAIK. > > [2] http://tech.groups.yahoo.com/group/rest-discuss/message/13606 > > > > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/rest-discuss/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/rest-discuss/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/