Re: Updated URI Template proposal

On 11/8/07, James M Snell <jasnell@gmail.com> wrote:
> wouldn't that be:
>
>      {-join|&|num}           // 0 or 1
>      {-join|&|num+}          // 1
>      {-listjoin|&num=|nums}  // 0 or more
>      {-listjoin|&num=|nums+} // 1 or more

Yes,

> Several more questions:
>
> * I assume that {-join|&|start,count} resolves to "start=foo&count=bar"
> and not "&start=foo&count=bar" (note the leading & in the latter).

Yes.

> * I also assume that the ordering of the var's in the -join is
> insignificant?  e.g. given {-join|&|start,count} the results
> "start=foo&count=bar" and "count=bar&start=foo" are equivalent and
> acceptable.

Yes.

> * Given {-opt|?|tags,start,count}, the ? is inserted if at least one of
> the members of the set is defined.  That is, if tags is defined but
> start and count are not, the ? will still be inserted.

Yes.

   -joe

-- 
Joe Gregorio        http://bitworking.org

Received on Thursday, 8 November 2007 19:52:30 UTC