Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In the radar.yml file, add the MongoDB credentials and host information 

Code Block
languagetext
# Mongodb hosts a map of hostname and port
mongodb_hosts:
    localhost: 27017

# Mongodb User
mongodb_credentials:
    username: restapi
    password: radar
    database_name: hotstorage


Then add the Management Portal configuration. For most cases, you will only need to configure the oauth_client_id, oauth_client_secret and the management_portal_url. Note that the an OAuth client must be registered in the Management Portal configuration with the details configured here

Code Block
languagetext
management_portal_config:
    oauth_client_id: radar_restapi # #OAuth2OAuth2 clientId used by the webApp for making requests
    oauth_client_secret: secret #OAuth2# OAuth2 client secret
    oauth_client_scopes: SUBJECT.READ PROJECT.READ SOURCE.READ SOURCETYPE.READ
    management_portal_url: http://localhost:8090/ # URL pointing Management Portal
    token_endpoint: oauth/token # URL managing tokens
    project_endpoint: api/projects/ # Management Portal API path for managing project function
    subject_endpoint: api/subjects/ # Management Portal API path for managing subject function
    source_type_endpoint: api/source-types/ # Management Portal API path for managing source type function
    source_data_endpoint: api/source-data/ # Management Portal API path for managing source data function
    source_endpoint: api/sources/ # Management Portal API path for managing sources function

...

Then add the timeout information for sources.


Code Block
languagetext
# Timeout duration for every source-type to decide source status whether its connected or not.

...


# A source-type should be defined by following the convention of producer_model as mentioned in

...


# the specification in radar-schemas

...


# timeout should be specified as the ISO-8601 duration format {@code PnDTnHnMn.nS}.

...


source-type-connection-timeout:

...


    android_phone: PT2H

...


    empatica_e4: PT1H