In the radar.yml file, add the MongoDB credentials and host information
# 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. Note that the an OAuth client must be registered in the Management Portal with the details configured here -
management_portal_config: oauth_client_id: radar_restapi # OAuth2 clientId used by the webApp for making requests oauth_client_secret: secret # 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.
# 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