xpublish.dependencies.get_dataset_ids#

xpublish.dependencies.get_dataset_ids()[source]#

FastAPI dependency for getting the list of ids (string keys) of the collection of datasets being served.

Use this callable as dependency in any FastAPI path operation function where you need access to those ids.

This dummy dependency will be overridden when creating the FastAPI application.

Return type:

List[str]

Returns:

A list of unique keys for datasets