app.routers.facets¶
HTTP route for search filter options.
GET /api/v1/facets lists sources and their projects with record
counts, for the search landing page’s source/project selects.
- app.routers.facets.get_facets(provider=Depends(dependency=<function get_store_provider>, use_cache=True, scope=None))¶
List sources and their projects with record counts.
- Parameters:
provider (
CatalogStoreProvider) – Storage provider (overridden by tests).- Return type:
- Returns:
The facets.