Call Quick BI APIs
Quick BI custom visualization components can call a subset of Quick BI APIs. The following example shows how to call an API from a custom component:
class MyComponent {
// Get the user API list during the mount phase
mount() {
// Replace /openapi/ with /proxyapi/.
fetch('/proxyapi/v2/organization/user')
.then(res => res.json())
.then(res => {
// ...
})
}
}
The following table describes the supported APIs.
When you call an API, replace /openapi/ in the API path with /proxyapi/. For example, replace /openapi/v2/organization/user with /proxyapi/v2/organization/user.
|
API Description |
Document |
|
Delete organization user |
|
|
Update organization member information |
|
|
Query organization member list |
|
|
Query user information by user ID |
|
|
Query user information by account |
|
|
Create user group |
|
|
Add members to user group |
|
|
Delete user group |
|
|
Delete user group members |
|
|
Query user group information list by user |
|
|
Query sub-user group list under parent user group |
|
|
Query user group member list |
|
|
Query all works under organization |
|
|
Query all works under workspace |
|
|
Query member list under workspace |
|
|
Get workspace list under organization |
|
|
Add work to favorites |
|
|
Remove a work from your favorites |
|
|
Get user favorite works list |