Hi Lahiru, On Sun, Apr 19, 2015 at 10:23 AM, Lahiru Sandaruwan <[email protected]> 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. 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
