Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.48 KB

README.md

File metadata and controls

52 lines (42 loc) · 1.48 KB

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