OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Best Practice for URI construction?

[ Lists Home | Date Index | Thread Index ]

> Yes, avoiding querystrings when you want the deferenced item to be 
> accessed by bots, or when the item should be idempotent,  would seem a 
> good best practice.
> 
> But a follow-on question might be: when is it a good idea to use 
> querystrings?

I don't think there is a standard, but my idea would be to
use /hierarchical/URI/parts/ as long as possible, e.g. as long as the
next step expressed by the parameter is indeed a hierarchic partitioning
of the content at the parent element, in a "real world" meaning.

After that, use query string parameters for non hierarchic partitions,
e.g. "?color=blue" or "?from=10". I do realise that "?from=10" can be
understood as a hierarchy thing, but I'd argue that it's not a hierarchy
in e.g. the pizza delivery services, but on my web page.

So, use the query string if your querying of the data, and use the URI
if your navigating through the data.

Martin





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS