On 10/31/17 03:29, Philippe Coval wrote: > On 31/10/17 09:24, sunlf wrote: >> >> Hi, devs, >> >> >> >> For C++ API, here are 2 functions, PUT and POST. >> >> >> >> What’s the difference between these 2?
> > Thanks for asking, because it's not obvious, > It worth to be confirmed, but I am not sure there is a direct mapping from > 4 CRUD ops to POST, GET, PUT, DELETE verbs. For what it's worth, OCF also uses a 5th verb, NOTIFY. The mapping of the concepts to the encoding in CoAP is now explained in the OCF Core specification - that was not present in proper detail in earlier specification versions (that is section 12.2) The big differences from the OCF Specification viewpoint is you can only POST to an existing resource; POST is not guaranteed repeatable, while you can send the same PUT request multiple times and the result is guaranteed to be the same. _______________________________________________ iotivity-dev mailing list [email protected] https://lists.iotivity.org/mailman/listinfo/iotivity-dev
