Updating IoTEntity Data REST

Revision for “Updating IoTEntity Data REST” created on January 19, 2015 @ 15:05:45

Title
Updating IoTEntity Data REST
Content
<h2>Adding data - POST to Collections</h2> Posting a single element (IoTEntity, IoTProperty or IoTStateObservation) to the respective collection will result in a new element being added to the collection or, if the @about attribute identifies an already existing entity, updating the existing entity. <code>{base}/IoTEntities</code> <code>{base}/IoTEntities/{IoTEntityID}/properties</code> <code>{base}/IoTEntities/{IoTEntityID}/properties/{IoTPropertyID}/observations</code> <h2>Setting data - The PUT method</h2> To be implemented. Posting an element (IoTEntity, IoTProperty or IoTStateObservation) to the URI identifying the resource will result in the resource being replaced with the contents of the posted representation. E.g., if previously existing IoTProperties in an IoTEntity are not included in the posted representation, these will be deleted from the IoTEntity. To add or merge data, use POST. <code>{base}/IoTEntities/{IoTEntityID}{base}/IoTEntities/{IoTEntityID}/properties/{IoTPropertyID}</code> <h2>Removing data - The DELETE method</h2> The DELETE method will remove the resource identified by the URI. <code>{base}/IoTEntities/{IoTEntityID}</code> <code>{base}/IoTEntities/{IoTEntityID}/properties/{IoTPropertyID}</code>
Excerpt


OldNewDate CreatedAuthorActions
January 19, 2015 @ 15:05:45 Vivian Esquivias
December 15, 2014 @ 10:01:30 Peter Rosengren
December 15, 2014 @ 09:59:13 Peter Rosengren