Documentation
Service Registry
Components
Service Info

EccClientGa4ghServiceRegistryServiceInfo Component

2.0.0-alpha.52
<ecc-client-ga4gh-service-registry-service-info/>
ECCClientGa4ghServiceRegistryServiceInfo

Overview

The ecc-client-ga4gh-service-registry-service-info component shows the service info of a GA4GH Service Registry itself (GET /service-info): its name, ID, version, type and organization, and the optional fields that the registry sets.

The version shows as a badge next to the name, the environment as a badge next to the type. Optional fields that are missing or invalid are left out: timestamps that the browser can't parse as dates (Date.parse()), and links other than http: and https: URLs (and mailto: for the contact).

Usage

Basic Service Info

ℹ️

The preview above shows the service info of a public service registry. See Live previews to use another registry.

Properties

PropertyAttributeTypeDefaultDescription
baseUrlbaseurlstring""Base URL of the Service Registry API, used if no provider is set
provider-ServiceRegistryProviderundefinedData provider for fetching the service info (see Providers)

Set one of them; without either, the component shows an error. Changing either loads the service info again.

provider

The data provider whose getServiceInfo() returns the service info. See the Providers documentation for the available providers and how to create custom ones.

import { RestServiceRegistryProvider } from '@elixir-cloud/service-registry/providers';
 
const provider = new RestServiceRegistryProvider('https://registry.example.com/ga4gh/registry/v1');
 
<ECCClientGa4ghServiceRegistryServiceInfo provider={provider} />

Events

Event NameReact Event NameDetail TypeDescription
ecc-service-info-changedonEccServiceInfoChanged{ serviceInfo: Service | null }Fired when the service info data changes

ecc-service-info-changed

Emitted when the service info is loaded. If loading fails, or the provider is removed, serviceInfo is null.

<ECCClientGa4ghServiceRegistryServiceInfo
  onEccServiceInfoChanged={(event) => {
    document.title = event.detail.serviceInfo?.name ?? 'Service Registry';
  }}
/>

Released under Apache 2.0 License.

Copyright © 2023-2026 ELIXIR