Hello Bjorn,

I think it has to do with the way you define the UserResource, and
especially the way to handle the HTTP POST method. Could you tell us more
about this? Are you using the "@POST" annotation? What Restlet extensions
have you added to your classpath?

Best regards,
Thierry Boileau

Hey all,
>
> I'm using restlet on GAE and I'm afraid I'm new to both. I've setup a basic
> routing:
>
>        router.attachDefault(UserResource.class);
>        Route r = router.attach( "/" + API_VERSION + "/user/{" +
> USER_ID_ATTRIBUTE + "}",UserResource.class);
>
> (with the intent that, ATM, all calls should go to UserResource which
> subclasses ServerResource) but when I try to POST with post variables the
> response is 415. My GET calls work and my POST calls without POST variables
> work.
>
> curl -i -H 'Accept: application/xml' -X POST -d "key=value" '
> http://localhost:8888/v0.1/user/create'
>
> Is something wrong with my routing or ServerResource? Sorry if I missed an
> obvious explanation somewhere.
>
> Thanks,
>
> bjorn
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2698062
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2698181

Reply via email to