Difference between revisions of "CRUD observations"

From AMTech WikiDocs
Jump to: navigation, search
(Created page with "==CRUD operations== * When a CRUD (Create/Update/Delete) operation is executed on a thing instance, an observation type observationresourcecrud is sent if the thing type produ...")
 
Line 1: Line 1:
==CRUD operations==
 
 
* When a CRUD (Create/Update/Delete) operation is executed on a thing instance, an observation type observationresourcecrud is sent if the thing type produces CRUD or if the activity has the thing type in the list of CRUD producers.  
 
* When a CRUD (Create/Update/Delete) operation is executed on a thing instance, an observation type observationresourcecrud is sent if the thing type produces CRUD or if the activity has the thing type in the list of CRUD producers.  
 
* The CRUD observations are sent to the topic /crud/<thingType> example "topic": "/crud/endCustomer"
 
* The CRUD observations are sent to the topic /crud/<thingType> example "topic": "/crud/endCustomer"
 
* For Followers, crud observations are sent only if the follower is an admin
 
* For Followers, crud observations are sent only if the follower is an admin
 
* For things of type AmtechM2mBridge, the CRUD observation of a DELETE operation is not generated (for consistency with the logic that the deletion of a bridge deletes the topic /amtechM2mBridge where the crud observations for the bridge and its instances are)
 
* For things of type AmtechM2mBridge, the CRUD observation of a DELETE operation is not generated (for consistency with the logic that the deletion of a bridge deletes the topic /amtechM2mBridge where the crud observations for the bridge and its instances are)

Revision as of 11:36, 3 May 2017

  • When a CRUD (Create/Update/Delete) operation is executed on a thing instance, an observation type observationresourcecrud is sent if the thing type produces CRUD or if the activity has the thing type in the list of CRUD producers.
  • The CRUD observations are sent to the topic /crud/<thingType> example "topic": "/crud/endCustomer"
  • For Followers, crud observations are sent only if the follower is an admin
  • For things of type AmtechM2mBridge, the CRUD observation of a DELETE operation is not generated (for consistency with the logic that the deletion of a bridge deletes the topic /amtechM2mBridge where the crud observations for the bridge and its instances are)