Managing tables, views and data using beqom APIs
This article details the use of the data management APIs. This service is used for communication with the beqom application using REST APIs.
Retrieving all tables and views
The following method returns all the tables/views present in the tenant.
| Service | Action | Endpoint | Input | Output Sample |
|---|---|---|---|---|
| Gateway | GET | /api/Admin/GetTableViewList |
|
Copy |
Reading the Data of a Table/View
The following method returns all the records of a selected table/view, with pagination and filtering possibility.
| Service | Action | Endpoint | Input | Filter Format | Output Sample |
|---|---|---|---|---|---|
| Gateway | GET | /api/Admin/GetTableViewData |
|
Copy |
Copy |
Adding a Single Record to a Table/View
The following method inserts a single record.
| Service | Action | Endpoint | Input | Output |
|---|---|---|---|---|
| Gateway | POST | /api/Admin/AddTableViewData |
|
New object payload |
Adding Several Records to a Table/View
The following method bulk inserts records.
| Service | Action | Endpoint | Input | Output |
|---|---|---|---|---|
| Gateway | POST | /api/Admin/AddBulk |
|
Array of objects |
The bulk operation takes column names from the first record in the body. It then generates an SQL query using columns in the first record and table name in k_referential_tables_views. If there is a difference in column names between records (either the column names are different or the number of columns does not match), then the system returns "500 INTERNAL ERROR".
Updating a Record Within a Table/View
The following method updates a record in an existing table/view. The method operates at property-level.
| Service | Action | Endpoint | Input |
|---|---|---|---|
| Gateway | PATCH | /api/Admin/UpdateTableViewData |
|
Deleting a Record from a Table/View
The following method deletes a record from an existing table/view.
| Service | Action | Endpoint | Input |
|---|---|---|---|
| Gateway | DELETE | /api/Admin/DeleteTableViewData |
|
Obtaining Parent/Child Relations
The following method returns child grid records.
| Service | Action | Endpoint | Input | Output Sample |
|---|---|---|---|---|
| Gateway | GET | /api/Admin/GetDatabaseTablesValueWithPaging |
|
Copy |
Obtaining Drop-Down Associations
The following method returns relational records for drop-down lists.
| Service | Action | Endpoint | Input | Output Sample |
|---|---|---|---|---|
| Gateway | GET | /api/Admin/GetGridFieldAssociatedData |
|
Copy |
Exporting a Table/View
There are four methods to perform this operation:
| Service | Action | Endpoint | Input | Output |
|---|---|---|---|---|
| Gateway | POST | /api/Kernel/CheckAndAddServiceMethodCall |
|
callId |
| Service | Action | Endpoint | Input |
|---|---|---|---|
| Gateway | GET | /api/Admin/ExportGrid |
|
| Service | Action | Endpoint | Input | Output Sample |
|---|---|---|---|---|
| Gateway | GET | /api/Kernel/GetServiceMethodCallResponse |
|
"Daily\\Excel\\e14ab341-eb46-426e-bf7c-655858aec029.xlsm" |
| Service | Action | Endpoint | Input |
|---|---|---|---|
| Gateway | GET | /api/File/ExportExcel |
|
Importing a Grid
The following method imports data in a grid:
| Service | Action | Endpoint | Input |
|---|---|---|---|
| Gateway | GET | /api/Data/ImportGrid |
|
HTTP Output
Standard HTTP output
- 200 Succeeded
- 401 Unauthorized
- 404 Not found
- 500 Internal error