RE: uri-templates and optional parameters

Edward Summers wrote:
> I'd really like to have a uri-template [1] to express the 
> following hierarchical URLs:
> 
>    http://loc.gov/issn/1046-8188
>    http://loc.gov/issn/1046-8188/1908-08-22
>    http://loc.gov/issn/1046-8188/1908-08-22/1
>    http://loc.gov/issn/1046-8188/1908-08-22/1/25
> 

+1

> with something like:
> 
>    http://loc.gov/lccn/{issn}/{date}/{edition}/{page}
> 

I think this was the suggestion:

	http://loc.gov/lccn/{issn}/{date}/{edition?}/{page?}

However, I think we need a day to include constant text for the optional
part, i.e. something like:

	http://{domain}/{section}/{('my-'+data)?}/ 

This would match both:

	http://foo.com/current/
	http://foo.com/current/my-stuff 

Or some better syntax...

-- 
-Mike Schinkel
http://www.mikeschinkel.com/blogs/
http://www.welldesignedurls.org
http://atlanta-web.org - http://t.oolicio.us
"It never ceases to amaze how many people will proactively debate away
attempts to improve the web..."

Received on Tuesday, 6 February 2007 08:19:09 UTC