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
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.
: 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
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
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
Just a thought: could it be because ? is a valid regexp meta-
character (
No, it's not the issue.
-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 -
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
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
9 matches
Mail list logo