...
we need to search over data across multiple anchors for a given dataspace. for this requirement below changes are proposed
Issues & Decisions
# | Issue | Notes | Decision |
---|---|---|---|
1 | Exact respons format | would like to be able to determine which dat is from which anchor See 3 alternatives below |
Endpoint Definition
New endpoint : GET http://localhost:8883/cps/api/v2/dataspaces/{dataspace-name}/nodes/query
...
# | scenario | Body Structures | Response Body Example | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | without anchor name | [{data-tree1},..,{data-tree-n}] |
| |||||||||
2 | anchor name per data node | [ | ||||||||||
3 | list of data nodes per anchor | { "anchor01": [ { "test:bookstore": { "bookstore-name": "Chapters", "categories": [ { "code": 1, "name": "SciFi" }, { "code": 2, "name": "kids" } ] } }, { "test:bookstore2": { "bookstore-name": "Chapters2", "categories": [ { "code": 10, "name": "SciFi" }, { "code": 20, "name": "kids" } ] } } ], "anchor02": [ { "test:bookstore": { "bookstore-name": "Chapters", "categories": [ { "code": 1, "name": "SciFi" }, { "code": 2, "name": "kids" } ] } }, { "test:bookstore2": { "bookstore-name": "Chapters2", "categories": [ { "code": 10, "name": "SciFi" }, { "code": 20, "name": "kids" } ] } } ] } |
...