On Sun, Apr 19, 2015 at 12:42 PM, Chamila De Alwis <chami...@wso2.com> wrote:
> Hi Lahiru, > > On Sun, Apr 19, 2015 at 10:23 AM, Lahiru Sandaruwan <lahi...@wso2.com> > wrote: > >> If someone did a PUT with a resource which does not exist, it should add >> the resource and return 201, right? >> > > Thanks for the feedback. Yes, PUT is required to create a resource and > send 201 Created if it doesn't exist, however IMO we should advise against > using update methods to create resources since we have a set of POST > methods to do the same task. > Yah, We do not advice. But i think we should handle that case as well, since it is the standard way of handling PUT. Thanks. > > There are a number of JIRA tickets for wrong status code related issues. I > will create the additional ones. > > > Regards, > Chamila de Alwis > Software Engineer | WSO2 | +94772207163 > Blog: code.chamiladealwis.com > > > -- -- Lahiru Sandaruwan Committer and PMC member, Apache Stratos, Senior Software Engineer, WSO2 Inc., http://wso2.com lean.enterprise.middleware phone: +94773325954 email: lahi...@wso2.com blog: http://lahiruwrites.blogspot.com/ linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146