Skip to main content

Starter Kit Data Connect Configuration

The Starter Kit Data Connect service can be configured with modifiable properties. All property configuration is done via a YAML config file that is supplied to the program at runtime via a -c ${CONFIG_FILE} option. This section outlines the structure of the YAML config.

The config file MUST start with a single root object named dataConnectConfig. All sub-properties are nested under dataConnectConfig.

Configurable dataConnectConfig properties

AttributeDescriptionLinks
serverPropsModifies the behavior of high-level server application properties, such as listening port(s), logging, and CORS headers.See serverProps for more info.
databasePropsConnect to a target database that has been set up with the prerequisite table schema for Starter Kit Data ConnectSee databaseProps for more info.
serviceInfoDisplay custom information about the deployed web service via the /service-info endpointSee serviceInfo for more info on configuring a custom Service Info response. See Data Connect Service Info Defaults for the default service info values for Starter Kit Data Connect deployments.

Data Connect Service Info Defaults

The following table lists the default attribute values returned over /service-info for Starter Kit Data Connect services.

AttributeDefault Value
idorg.ga4gh.starterkit.dataconnect
nameGA4GH Starter Kit Data Connect Service
descriptionStarter Kit implementation of the Data Connect API specification. Gives researchers access to the data model of given datasets/tables, and enables them to perform search queries on the datasets using the model.
contactUrlmailto:info@ga4gh.org
documentationUrlhttps://github.com/ga4gh/ga4gh-starter-kit-data-connect
createdAt2022-04-27T09:00:00Z
updatedAt2022-04-27T09:00:00Z
environmenttest
version0.1.0
organization.nameGlobal Alliance for Genomics and Health
organization.urlhttps://ga4gh.org

Example Starter Kit Data Connect Config

The following snippet displays an example complete YAML configuration for a deployment of the Starter Kit Data Connect service.

dataConnectConfig:
serverProps:
scheme: https
hostname: data-connect-api-starterkit.example.com
publicApiPort: 80
adminApiPort: 7000
databaseProps:
url: jdbc:postgresql://starter-kit-demo-db.ga4gh.org:5555/dataconnectdb
username: ga4gh-admin
password: makeSureThisIsSecure123
serviceInfo:
id: org.ga4gh.data-connect.public-data-connect
name: Genomics Public Data Connect Service
description: Allows researchers to discover and search biomedical data according to the Data Connect Specification