A registry for lookup apis, so that they can be managed, cached, etc.

class here.platform.api.registry.lookup_api_registry.LookupApiRegistry[source]#

Bases: object

HERE platform lookup api registry.

has_resources_apis(catalog_hrn: str) bool[source]#

Check whether a given schema has already been registered.

Parameters:

catalog_hrn – Catalog HRN

Returns:

a bool flag indicating if schema is already registered.

register(catalog_hrn: str, resources_apis: dict)[source]#

Register a new resource lookup api for a given hrn.

resources_apis(catalog_hrn: str) Dict | None[source]#

Return a schema by the provided schema HRN identifier.

Parameters:

catalog_hrn – Catalog HRN

Returns:

Schema instance for the given hrn.