This module contains a ServiceRegistryApi class to perform service registry API operations.

The HERE Location Service Registry API reference documentation used in this module can be found here: HERE Location Service Registry API Reference # noqa E501

class here.platform.api.service_registry_api.ServiceRegistryApi(base_url: str, platform_config: PlatformConfig, application_config: ApplicationConfig, auth: Auth | None, proxies: dict | None)[source]#

Bases: BaseApi

This class provides access to HERE Platform Service Registry APIs.

The registry service provides basic service management operations. It manages all platform service resources needed for different kinds of services and operations on them.

get_service(service_hrn: str) dict[source]#

Fetches a service having specified HRN if it exists.

Parameters:

service_hrn – a HERE Resource Name

Returns:

a dictionary with details of service with specified HRN

Raises:
get_services() List[dict][source]#

List all services.

Returns:

a list of dictionaries with details of all services

Raises:

PlatformException – If platform responds with an HTTP error.