RE: Is Multiple Get and Put annotations Possible?

2011-09-29 Thread D G
I don't see a section called Annotations Parameter. Am I missing some thing here ? Also, is there any tutorial or documentation with details @ annotation in RestLet. Thanks, Deep -- View this message in context:

Re: Is Multiple Get and Put annotations Possible?

2011-09-29 Thread Stephan Koops
Nachricht- Von: D G dgisc...@gmail.com Gesendet: 29.09.2011 14:16:35 An: discuss@restlet.tigris.org Betreff: RE: Is Multiple Get and Put annotations Possible? I don't see a section called Annotations Parameter. Am I missing some thing here ? Also, is there any tutorial or documentation with details

RE: Re: Is Multiple Get and Put annotations Possible?

2011-02-17 Thread Hetal Gaglani
Can we have multiple @Get and @Put for different URL's pointing to them?? For eg: For URI: /car/nissan, I have a @Get(json) method pointing to return nissan car attributes as json For URI: /car, I need just a list of car attributes to be returned as json But both these URI's are pointing to the

Re: Re: Is Multiple Get and Put annotations Possible?

2011-02-17 Thread Fabian Mandelbaum
Hello Hetal, you'd rather use two different resource classes here, because usually, in RESTful design, a collection of X is a different resource than X itself. So in your example, you can have the following resources/URI templates/server resource classes: A car: /cars/{car}, CarServerResource A

Re: Is Multiple Get and Put annotations Possible?

2010-08-20 Thread Thierry Boileau
Hello, I'm afraid this is not possible. You can have only one parameter (there is only one entity in the request). In this case below , I wonder why the Address is not included inside the Contact object. Does it represent the contact's address? @Post public ArrayListContact update(Address

RE: Is Multiple Get and Put annotations Possible?

2010-08-18 Thread Neelmani Gautam
Hi Thierry, Thanks for reply to my query. I am having a situation where I need to call various methods with GET/PUT annotations. For e.g. as follow. public interface ContactResource{ @Get public ObjectRepresentationContact retrive(); @Post public ArrayListContact update(Address

RE: Is Multiple Get and Put annotations Possible?

2010-08-13 Thread Thierry Boileau
Hello, you can have several annotated methods, but they should have distinct annotations. You have a look at this document [1], expecially the section Annotations parameter. Feel free to ask for more details. Best regards, Thierry boileau [1]