Skip to main content
Version: 2.7

Data Access

The data-url manages the data handling of DataNodes.

Get All DataNodes

Gets a list of all data nodes.

HTTP MethodGET
HTTP Url:nodes/data
HTTP Query-Parameter:-
Request Content-Typetext/xml; text/json
Request Body-
Response Content-Typetext/xml; ext/json
Response ContentData Node

Example:

GET http://localhost:8081/nodes/data?id=f9a4300a-654b-42cf-9f54-f866184b7352

Get a Single DataNode

Gets a single data node.

HTTP MethodGET
HTTP Url:nodes/data
HTTP Query-Parameter:id: command id as System.Guid
Request Content-Typetext/xml; text/json
Request Body-
Response Content-Typetext/xml; text/json
Response ContentData 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 MethodPOST
HTTP Url:nodes/data
HTTP Query-Parameter:id: command id as System.Guid
Request Content-Typetext/xml; text/json
Request BodyData Value
Response Content-Typetext/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>