RE: firstResource tutorial: item put vs. items post

2010-02-26 Thread Jerome Louvel
2010 08:36 À : discuss@restlet.tigris.org Objet : Re: firstResource tutorial: item put vs. items post Hello Daniel, apparently PUT updates an existing item if found yes, and it creates it if not found. One important condition is that you know (by advance, if the resource does not exist

firstResource tutorial: item put vs. items post

2010-02-24 Thread Daniel Rocco
hello everyone, I'm a new user working through the Restlet tutorials (Restlet 2.0m7, java 1.6, running standalone (no servlet container) from eclipse). So far I'm enjoying using Restlet, which seems very straightforward, especially compared to other java web technologies. From the

Re: firstResource tutorial: item put vs. items post

2010-02-24 Thread Thierry Boileau
Hello Daniel, apparently PUT updates an existing item if found yes, and it creates it if not found. One important condition is that you know (by advance, if the resource does not exist yet) the resource's identifier (its URI). POST is a more generalist operation that allows the target