Re: URI Templates - optional variables?

On Aug 1, 2007, at 3:55 PM, Mike Schinkel wrote:
>
> Where it would be most useful in path segments is when you view the  
> URL path
> segments as a generalized query mechanism:
>
>     http://example.com/{make?}/{model?}/{year?}/
>
> For make=bmw, model=, and year=2004 you would have:
>
>     http://example.com/bmw/2004/
>
> For make=, model=m5, and year= you would have:
>
>     http://example.com/m5/
>
Just a thought but the current draft would give you (ignoring the '?'  
in your template):

http://example.com/bmw//2004/ and
http://example.com//m5//

Which are both nicely unambiguous...

Marc.


---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.

Received on Wednesday, 1 August 2007 21:33:29 UTC