openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Item REST endpoint include item parents

Open mherwege opened this issue 5 months ago • 0 comments

I UI PR to be able to show the semantic tree of an item in the item detail screen.

For this, the item semantic model needs to be requested from the REST API. The current approach is to request the static data for all items, but this may lead to high volumes of data repeatedly being passed over the network (the caching does not always work when proxies are involved). As the idea is to show a tree only involving the item with its parents (recursive) and children recursive), I have extended the item REST endpoint with a parents parameter (members are already retrieved recursively). This way the semantic model for a single item can be retrieved with the minimum amount of traffic.

Relates to https://github.com/openhab/openhab-webui/pull/3227

@ghys FYI

mherwege avatar Jun 20 '25 13:06 mherwege