W3C home > Mailing lists > Public > uri@w3.org > August 2007

RE: URI Templates - optional variables?

From: Mike Schinkel <mikeschinkel@gmail.com>
Date: Wed, 1 Aug 2007 18:59:18 -0400
To: "'Stefan Eissing'" <stefan.eissing@greenbytes.de>
Cc: <uri@w3.org>
Message-ID: <00da01c7d48f$99ced7b0$0702a8c0@Guides.local>

Stefan Eissing wrote:
> I cannot speak for Mike. What I can see as use case would be 
> a template describing a site's structure like
> 
> http://www.example.com/pictures/{user?}/{theme?}/
> 
> which is then used to generate
> 
> http://www.example.com/pictures/dan/cars/ - all of dan's car 
> pics http://www.example.com/pictures/dan/ - all of dan's pics
> 
> and maybe even
> 
> http://www.example.com/pictures/ - all of pics of all users
> 
> Of course this could also be done by using query parameters, 
> but without the uris are easier to remember. I hope this 
> explains it a bit.

You spoke for me perfectly in this case. :-)  And it is a really good
example, actually.

--
-Mike Schinkel
organizer@atlanta-web.org
http://atlanta-web.org
404-276-1276 (cell) 
Received on Wednesday, 1 August 2007 22:59:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:11 UTC