new Configuration( [config])
This is a service for configuring the symptom checker api environment.
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
config |
Configuration |
<optional> |
An optional configuration object. A new configuration with default values will be instantiated this is not provided. |
Members
-
<inner> age_groups :Array.<string>
-
This is the language code to use with the Symptom Checker API and the example angular application interface
Type:
- Array.<string>
- Default Value:
-
- '['child', 'adult']'
-
<inner> api_env :string
-
This is the subdomain indicating the Symptom Checker API environment to use
Type:
- string
- Default Value:
-
- 'demo'
-
<inner> api_version :string
-
This is the version string
major.minor
indicating the Symptom Checker API version to useType:
- string
- Default Value:
-
- '1.2'
-
<inner> domain :string
-
This is an optional configuration option for specifying a domain other than selfcare.info for a self hosted version of the SC API. This should include a subdomain and the api_env will be ignored when this option is provided.
Type:
- string
-
<inner> language_code :string
-
This is the language code to use with the Symptom Checker API and the example angular application interface
Type:
- string
- Default Value:
-
- 'en'
-
<inner> private_key :string
-
This is the private key from your Symptom Checker API access credential
Type:
- string
- Default Value:
-
- 'vUaJDpksbgXCaYmZPcJSNFVXlOifyVWqDAPu6Piw5hIiDFt47FFQsHcK01jyv1Il8H+tXK6Nz6olYDXcvxF0vg=='
-
<inner> public_key :string
-
This is the public key from your Symptom Checker API access credential
Type:
- string
- Default Value:
-
- 'abc'