Skip to content

Commit

Permalink
add dtable asset stats
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCXC committed Apr 8, 2023
1 parent dcdc380 commit d3c3800
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/dtable-web-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2171,6 +2171,16 @@ class DTableWebAPI {
return this._sendPostRequest(url, form);
}

getDTableAssetStats(dtableUuid) {
let url = this.server + `/api/v2.1/dtables/${dtableUuid}/asset-stats/`;
return this.req.get(url);
}

calcDTableAssetStats(dtableUuid) {
let url = this.server + `/api/v2.1/dtables/${dtableUuid}/calc-asset-stats/`;
return this.req.post(url);
}

listCommonDatasets(dstDTableUuid, byGroup=false) {
let url = this.server + '/api/v2.1/dtable/common-datasets/';
let params = {};
Expand Down

0 comments on commit d3c3800

Please sign in to comment.