xpublish.Rest.get_dataset_from_plugins#

Rest.get_dataset_from_plugins(dataset_id, group='')[source]#

Resolve a Dataset by dataset_id (and optional group).

When used as a FastAPI dependency, group is auto-extracted from the route’s {group_path:path} segment via get_group_path(). When called directly, group defaults to the empty string (returning the root dataset) and may be passed explicitly to navigate into the tree.

Return type:

Dataset

Returns:

Dataset for the selected dataset_id (at the selected group node).

Raises:

FastAPI.HTTPException – When the dataset or group is not found.