Re: Unsupported Media Type (415) with Generic Put or Post

2013-01-28 Thread Jerome Louvel
FYI, see follow-up here: http://stackoverflow.com/questions/14409575/unsupported-media-type-415-with-generic-put-or-post Jerome 2013/1/18 Darwin Airola darwinair...@gmail.com Aloha! I was trying to implement a generic put or post method in Restlet. (I was able to implement a generic Get

RE: Unsupported Media Type (415)

2012-04-13 Thread Dalia Sobhy
H, I am developing a small app using Restlet 2.0 API.. I want just to know how to create a URI which accepts more than one parameter for insert query. Ex: router.attach(/{patient}/insertpatient, insertpatient); I want to insert all the info about the patient using POST. Or Search

Re: Unsupported Media Type (415)

2012-04-13 Thread Bjorn Roche
Hi Dalia, I am no expert, but I believe I can help you. First off, I don't think you want to use insertpatient as part of your URL. that's not very restful. Here is what I would recommend: /patient - for creating (with POST), or searching (with GET) /patient/{patientId} - for accessing a

RE: Unsupported Media Type (415)

2012-04-10 Thread Dalia Sobhy
I really have the same problem sooo any help plz -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Unsupported-Media-Type-415-tp5963113p7451061.html Sent from the Restlet Discuss mailing list archive at Nabble.com.

RE: Unsupported Media Type (415)

2012-04-10 Thread Dalia Sobhy
I really have the same problem sooo any help plz -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Unsupported-Media-Type-415-tp5963113p7451060.html Sent from the Restlet Discuss mailing list archive at Nabble.com.

RE: Unsupported Media Type (415)

2011-02-07 Thread Killian
Hi Jerome, No worries, thanks for your response :-) -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2702645

RE: Unsupported Media Type (415)

2011-02-02 Thread Killian
Hi Lads, Could anyone give us some advice on this issue? It'd be really nice to get it working. Thanks :-) -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2701930

RE: Unsupported Media Type (415)

2011-02-02 Thread Killian
I'm just after finding another thread which appears to have a similar problem http://restlet.tigris.org/issues/show_bug.cgi?id=1219 There's no answer for it yet though. Is anyone looking at this thread? It's been more than a week now since this issue was posted?

RE: Unsupported Media Type (415)

2011-01-31 Thread Killian
Hi Bjorn, Thanks very much for your help. Yes, in the mean time since I posted this message I came to the same conclusion too, however, using plain java objects with REST was really what was attracting me most with Restlet, so if I could find a way to avoid using forms altogether it'd be very

RE: Unsupported Media Type (415)

2011-01-28 Thread Bjorn Roche
My ContactServerResource is similar to the example: @Get public Contact retrieve(Contact contact) { return contact; } @Put public void store(Contact contact) { ContactServerResource.contact = contact; } I am also a noob,