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