On terça-feira, 31 de outubro de 2017 08:15:41 PDT Mats Wichmann wrote:
> The big differences from the OCF Specification viewpoint is you can only
> POST to an existing resource; POST is not guaranteed repeatable

POST can have side effects, which is why it is not repeatable. PUT is always 
idempotent.

Interestingly, one of the side effects of POST can be the creation of other 
resources. So you can POST to create a resource, but unlike PUT, it's 
*another* resource that gets created. As Mats said, you need to POST to an 
existing resource.

This is the theoretical distinction. OCF specifies which actions to perform on 
each resource -- that's the interaction model.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

_______________________________________________
iotivity-dev mailing list
[email protected]
https://lists.iotivity.org/mailman/listinfo/iotivity-dev

Reply via email to