Skip to content

Commit

Permalink
home page add search across base
Browse files Browse the repository at this point in the history
  • Loading branch information
JoinTyang committed Aug 24, 2023
1 parent 719c99d commit b0087cd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/dtable-web-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -2962,6 +2962,25 @@ class DTableWebAPI {
return this._sendPostRequest(url, params, {headers: {'Content-Type': 'application/json'}});
}

listMultiBaseIndexRecords() {
let url = this.server + '/api/v2.1/multi-base-index-records/';
return this.req.get(url);
}

createMultiBaseIndexRecord(indexConfig) {
let url = this.server + '/api/v2.1/multi-base-index-records/';
let form = new FormData();
form.append('index_config', indexConfig);
return this.req.post(url, form);
}

updateMultiBaseIndexRecord(associateId, indexConfig) {
let url = this.server + '/api/v2.1/multi-base-index-record/' + associateId + '/';
let form = new FormData();
form.append('index_config', indexConfig);
return this.req.put(url, form);
}

// org admin api
orgAdminUpdateOrgInfo(newOrgName) {
let url = this.server + '/api/v2.1/org/admin/info/';
Expand Down

0 comments on commit b0087cd

Please sign in to comment.