On Dec 1, 2011 9:20 AM, "Stephan Koops" <[email protected]> wrote: > > <html><head></head><body bgcolor='#FFFFFF' style='font-size:10pt;background-color:#FFFFFF;font-family:Verdana, Arial, sans-serif;'>Hi,<br/> > <br/> > > You can't operate on your resource until it exists :)<br/> > <br/> > That's not fully true: You could create it with PUT
True, but this is not the issue. REST gives you two ways to create a new resource: you can PUT it to a new URI or you can POST it to an **existing** URI representing a collection of similar resources. So if you want to map CRUD operations to the REST verbs with POST mapping to the C in CRUD and PUT mapping to the U, as the orig poster wanted, then POST needs to be in a separate server resource since you POST to a parent resource. > ------------------------------------------------------ > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2889680 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2889700

