Data Access
The data-url manages the data handling of DataNodes.
Get All DataNodes
Gets a list of all data nodes.
HTTP Method | GET |
HTTP Url: | nodes/data |
HTTP Query-Parameter: | - |
Request Content-Type | text/xml ; text/json |
Request Body | - |
Response Content-Type | text/xml ; ext/json |
Response Content | Data Node |
Example:
GET http://localhost:8081/nodes/data?id=f9a4300a-654b-42cf-9f54-f866184b7352
Get a Single DataNode
Gets a single data node.
HTTP Method | GET |
HTTP Url: | nodes/data |
HTTP Query-Parameter: | id : command id as System.Guid |
Request Content-Type | text/xml ; text/json |
Request Body | - |
Response Content-Type | text/xml ; text/json |
Response Content | Data Node |
Example:
GET http://localhost:8081/nodes/data?id=87da9093-b415-45cf-83a0-5af75177c4c1
Response Body
<Data>
<Id>87da9093-b415-45cf-83a0-5af75177c4c1</Id>
<Name>Available</Name>
<Property>
<Name>DataClass</Name>
<DataType>HumanOS.Kernel.DataModel.EDataClass</DataType>
<Value>Event</Value>
</Property>
<Property>
<Name>DataState</Name>
<DataType>HumanOS.Kernel.DataModel.EDataState</DataType>
<Value>Good</Value>
</Property>
<Property>
<Name>SynchRead</Name>
<DataType>HumanOS.Kernel.DataModel.TCommandNode</DataType>
<Value>HumanOS.Kernel.DataModel.TCommandNode</Value>
</Property>
<Value>1021</Value>
<DataType>System.Int32</DataType>
<TimeStamp>5248460822101387527</TimeStamp>
</Data>
Writing Data Value
Gets a data value.
HTTP Method | POST |
HTTP Url: | nodes/data |
HTTP Query-Parameter: | id : command id as System.Guid |
Request Content-Type | text/xml ; text/json |
Request Body | Data Value |
Response Content-Type | text/xml ; text/json |
Response Content | “OK” |
Example:
POST http://localhost:8081/nodes/data?id=f9a4300a-654b-42cf-9f54-f866184b7352
Request Body
<HumanOS.Stream>
<Data>
<Value>1726.912</Value>
</Data>
</HumanOS.Stream>
Response Body
<HumanOS.Stream>
<Data>
<ReturnCode>Good</ReturnCode>
<Exception></Exception>
</Data>
</HumanOS.Stream>