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 :
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
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
3 matches
Mail list logo