Data Service Settings

Introduction #

SmartChart datasets can be exposed as independent API microservices. By configuring user whitelists and tokens, external systems can query SmartChart dataset data via GET/POST requests. This makes SmartChart not just a visualization platform, but a lightweight data API gateway.

Permission Settings #

Account Access #

  • Super admin can find “Service Configuration” in the user icon dropdown menu
  • Configure API users (must exist in user settings):
{
  "test": {
    "token": "smartchart"
  },
  "test2": {
    "token": "smartchartxxx",
    "host": ["10.10.10.10", "10.10.10.23"],
    "limit": 60,
    "log": 1,
    "cors": 1
  }
}

Dataset Permissions #

  • In dataset permission management, assign dataset access to corresponding users

Service Configuration Fields #

Field Type Description
token Required Secret key for SHA1 signature
host Optional array IP whitelist, no restriction if not configured
limit Optional int Max calls per minute (rate limiting)
log Optional Logging method
cors Optional 1 Allow cross-origin access