Re: URI Templates - optional variables?

Am 01.08.2007 um 19:02 schrieb Marc Hadley:
> I'd be interested to hear more about the use case for a URI  
> template that behaves in this way. E.g. I'd expect that:
> would identify two quite different resources, whereas:
> *could* identify two instances of particular kind of resource. I'd  
> like to understand what is the planned use for a URI template that  
> can resolve to either of the first pair - why wouldn't you use two  
> different URI templates ?

I cannot speak for Mike. What I can see as use case would be a  
template describing a site's structure like{user?}/{theme?}/

which is then used to generate - all of dan's car pics - all of dan's pics

and maybe even - 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.

Stefan Eissing

<green/>bytes GmbH
Hafenweg 16
D-48155 Münster
Amtsgericht Münster: HRB5782

Received on Wednesday, 1 August 2007 22:31:03 UTC