Re: GET query parameters

2007-03-01 Thread Thierry Boileau
Hello Stokes, Your approach seems ok for me. Your Gadget Resource is well identified, and you just want to customize the representation of a gadget. Just attach your resource with the simple pattern /gadgets/{gadgetId}. Then, in your resource, you can get the query parameters just as follow :

Re: GET query parameters

2007-03-01 Thread Stokes
Thierry Boileau thboileau at gmail.com writes: Your approach seems ok for me. Your Gadget Resource is well identified, and you just want to customize the representation of a gadget. Just attach your resource with the simple pattern /gadgets/{gadgetId}. Then, in your resource, you can get

GET query parameters

2007-02-28 Thread Stokes
I'm using Restlets mainly for read-only access to domain objects, which are rendered as XML. In some cases I would like the amount of detail in the representation to be specified in the request. For example, if Gadgets contain Gizmos, then I have: http://myhost.com/rest/gadgets/1234