Skip to content

REST API

Roger Zander edited this page Dec 4, 2017 · 24 revisions

Upload Data

Upload a new or existing object where {Id} is the identifier of the object.
http://{URL}/upload/{Id}

As return value you will get the hash value for the uploaded Object.

Get full Data

Resolves the Blockchain with all hashed values and returns the full object in JSON Format.
http://{URL}/full?id={Id}[&index={revision}]

http://{URL}/full?{lookupId}={LookupValue}[&index={revision}]

Example:

http://server/full?%23Name=NUC1&index=1

get differential between revisions

http://{URL}/diff?id={Id}[&index={revision}]

http://{URL}/diff?{lookupId}={LookupValue}[&index={revision}]

Example:

http://server/diff?%23Name=NUC1&index=1

Query Data

http://{URL}/query?OS.Caption,OS.Version&$select=%23Name,_inventoryDate

Query Data including History

http://{URL}/queryAll?OS.Caption,OS.Version&$select=%23Name,_inventoryDate

Search

http://{URL}/search?{free text}&$select=%23Name

Show History

Get all index,timestamp and hashid for a specific device.
http://{URL}/history?id={Id}[&index={revision}]

http://{URL}/history?{lookupId}={LookupValue}

Clone this wiki locally