Skip to content

Sample scripts and app to access RADAR-base entities and Minio data from the REST API and Minio SDK

License

Notifications You must be signed in to change notification settings

thehyve/radar-sample-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RADAR-base scripts

Table of contents

Access RADAR-base Entities

Create a new OAuthClient

  • Log into ManagementPortal
  • View the OAuth Clients page (Top Menu/Administration/OAuth Clients)
  • Register a new OAuth Client
    • Enter the Client ID, and Client Secret
    • Enter the Scope
      • SOURCETYPE.READ, MEASUREMENT.CREATE, PROJECT.READ, OAUTHCLIENTS.READ, SOURCEDATA.READ, SUBJECT.READ, SUBJECT.UPDATE
    • Enter the Resources
      • res_ManagementPortal, res_gateway
    • Check Grant Type client_credentials
    • Enter Access Token Validity (a value in seconds, e.g. 900 = 15 minutes)

Script

  • Run the script in scripts folder:
./scripts/main.sh

Access Data via Minio API

Get Access Key and Secret Key

  • Log into Minio Portal
  • Go to Access Keys Page (Side Menu / Access Keys)
  • Create access key
  • Copy Access Key and Secret Key (These keys are used in the app)

Run the app

  • Install the app dependencies
npm install
  • Run the NodeJs Application
node app.mjs

The full documentation of the SDK for different languages is available on Minio website: https://min.io/docs/minio/linux/developers/minio-drivers.html

About

Sample scripts and app to access RADAR-base entities and Minio data from the REST API and Minio SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published