Re: RE: Handlers for search urls

2006-11-13 Thread John D. Mitchell
FWIW, one thing that I like is to think of query parameters as adjectives that modify the meaning/interpretation of the noun or as adverbs modifying the action. Hope this helps, John On 11/5/06, Jerome Louvel [EMAIL PROTECTED] wrote: Hi Vincent, Well, it turns out restlets only understand

Re: Handlers for search urls

2006-11-07 Thread Vincent
attach(/accounts/[0-9], new GetAccountHandler()) attach(/accounts, new SearchAccountHandler()) Yes, that's what I ended up doing. It's a good solution. Thanks. Vincent.

RE: Handlers for search urls

2006-11-06 Thread Jerome Louvel
: dimanche 5 novembre 2006 19:50 À : discuss@restlet.tigris.org Objet : Re: Handlers for search urls Hi Jerome, The choice of not exposing the query string and the fragment part of the target resource URI was deliberate. The question is: is the question mark part of the query string

RE: Handlers for search urls

2006-11-05 Thread Jerome Louvel
Hi Vincent, Well, it turns out restlets only understand the base of the URLs. The choice of not exposing the query string and the fragment part of the target resource URI was deliberate. The reason is that the query string is often composed of a sequence of parameters (key=value) that can

Re: Handlers for search urls

2006-11-05 Thread Vincent
Hi Jerome, The choice of not exposing the query string and the fragment part of the target resource URI was deliberate. The question is: is the question mark part of the query string? The reason is that the query string is often composed of a sequence of parameters (key=value) that can

Re: Handlers for search urls

2006-11-05 Thread Vincent
Just a thought: could it be because ? is a valid regexp meta- character ( No, it's not the issue. -Vincent.

Re: Handlers for search urls

2006-11-03 Thread Vincent
Hi Piyush, /accounts/search/less_than/1 /accounts/search/greater_than/1 /accounts/search/between/1/2 The issue I have with this approach is that it doesn't allow to mix several search criteria (balance_less_than=2000status=active). I'd like to have: 1) /accounts/1234 -

Re: Handlers for search urls

2006-11-03 Thread Sean Landis
Hi Vincent, Vincent vincent.lari at yahoo.ca writes: Hi Piyush, /accounts/search/less_than/1 /accounts/search/greater_than/1 /accounts/search/between/1/2 The issue I have with this approach is that it doesn't allow to mix several search criteria

Re: Handlers for search urls

2006-11-03 Thread Vincent
Sean, We had a similar issue and I think this is an area where the REST philosophy is somewhat stressed. [..] We decided to make a web service, use a POST and put the criteria in the XML. Then the URI could be /accounts/search which is pretty easy to deal with. I'm not sure it stretches