...
Query APIs
In CPS temporal, the state data can be filtered based on three criteria
- Datetime
- States Data in last X hours
- States after Data after a particular DateTime
- State at Data at a particular time
- Last X statesnetwork data
- DataTypes in CPS Core
Dataspace & schema-set
- Dataspace & anchor
- Dataspace & multiple anchors - To improve performance, if there is a need to fetch data for multiple anchors.
- Dataspace
- Payload
- Based on a subsection or field in the payload. These criteria do need schema-set to be fixed to search in the same set of anchors
Adding payload filtering with DateTime criteria can make the query APIs complicated. Hence, we will implement the basic APIs first and will add complex ones when required.
Proposed APIs
base-url: /cps-temporal/api/v1
...