Re:Designing a RESTful API That Doesn't Suck
by icebraining on Friday March 22, 2013 @10:33AM
(#5423114)
No, PUT can be for creating too, if the client already knows the final URL. From the spec:
If the Request-URI does not point to an existing resource, and that URI is capable of being defined as a new resource by the requesting user agent, the origin server can create the resource with that URI. If a new resource is created, the origin server MUST inform the user agent via the 201 (Created) response.
If the Request-URI does not point to an existing resource, and that URI is capable of being defined as a new resource by the requesting user agent, the origin server can create the resource with that URI. If a new resource is created, the origin server MUST inform the user agent via the 201 (Created) response.