Application that provides a REST API to provide Variables (measured modalities) and related Observations (measurements) for Subjects (participants). The data layer connects to the TimescaleDB database that is provisioned with (a subset of) the data from the RADAR-base kafka service.[]\
- API for retrieving variables and observations for a single subject.
- Has liquibase support to enable seamless database schema migration.
Data dashboard applications can use the APIs as follows.
GET */subject/{subjectId}/variables/observations
Get all configured users for a particular source-type use GET */users?source-type={source-type}
To install functional RADAR-base Rest-Sources Authorizer application with minimal dependencies from source, please use
the docker-compose.yml
under the root directory.
Copy the docker/etc/rest-source-authorizer/authorizer.yml.template
into docker/etc/rest-source-authorizer/authorizer.yml
and modify the restSourceClients.FitBit.clientId
and restSourceClients.FitBit.clientSecret
with your Fitbit client application credentials. Then start the
docker-compose stack:
docker-compose up -d --build
All users registered with the application will be authorized against ManagementPortal for integrity and security.
To add new OAuth clients, you can add at runtime through the UI on Management Portal, or you can add them to the OAuth
clients file referenced by the MANAGEMENTPORTAL_OAUTH_CLIENTS_FILE
configuration option. For more info,
see officail docs
The OAuth client for authorizer-app-backend should have the following properties.
client-id:data_dashboard_api
client-secret:Confidential
grant-type:client_credentials
resources:res_DataDashboardAPI
scope:MEASUREMENT.READ