...
This operation executes database queries on specific a Reference Data profile and database table. The query is performed asynchronously and control is returned immediately. You can retrieve the result of the query by using /rowset/<rowset number>?sessionid=<session id>
. This operation requires JSON payload as inputInput parameters that are passed in a JSON format as part of the HTTP message body.
Note |
---|
Note!Any ongoing query process running on the same session will be aborted and a new process for the latest query will be executed. This operation will clear any uncommitted changes saved in the same session. |
Resource path | /refdatas/<Reference Data profile>/table/<table name>/rowset?sessionid=<session id> |
---|---|
HTTP method | PUT |
Body | This is where the executeQuery will be included. The executeQuery JSON payload format will include these options:
|
Rw ui textbox macro | |||||
---|---|---|---|---|---|
| |||||
Example - Get query without querywithexpression in JSON payloadin the HTTP messagebody
|
Rw ui textbox macro | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Example - Get queryusing awith query expression in JSON payloadfilebody
Example.json file
|
Get Data Sets
...
|
Rw ui textbox macro | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Example - Get query using a JSON payload file
Example.json file
|
Get Data Sets
Data sets can be retrieved once downloaded to the file system of the Platform. This operation returns a data set for the given rowset (sequence number). The total number of available data sets can be queried with the status
operation.
...
Rw ui textbox macro | |||||
---|---|---|---|---|---|
| |||||
Example - Get status
|
Abort
...
Process
This operation request the active process to abort.
Note |
---|
Note!To prevent a user from initiating another operation before the first operation initiated is complete, |
...
Rw ui textbox macro | |||||
---|---|---|---|---|---|
| |||||
Example - Get status
|
Table
...
Export
This operation performs a database table export. Input parameters are passed in a JSON format as part of the HTTP message body as a APPLICATION_FORM_URLENCODED string.
...
Description
Value
Resource |
---|
path |
---|
/refdatas/<Reference Data profile>/table/<table name>/download?sessionid=<sessionid> |
HTTP method |
---|
POST |
Basic Auth
This is a required parameter which contains the username and password.
Body | This is where the exportParams will be included |
---|
. The exportParams |
JSON payload will include these |
options:
|
|
Example format: exportParams={"opts":{"textQualifier":"\'","separator":";","extent":"all"},"selectedColumns":["COLUMN1","COLUMN2"]}
exportParams=%7B%22opts%22%3A%7B%22textQualifier%22%3A%22%5C'\''%22%2C%22separator%22%3A%22%3B%22%2C%22extent%22%3A%22all%22%7D%2C%22selectedColumns%22%3A%5B%22CITY%22%2C%22CUSTOMER_NAME%22%5D%7D
|
Rw ui textbox macro | |||||
---|---|---|---|---|---|
| |||||
Example - Table export without options
|
Rw ui textbox macro | ||
---|---|---|
| ||
Example - Table export with options Code Block | | |
|
Code Block | ||
---|---|---|
| ||
$ curl -X POST \ 'http://localhost:9000/api/v1/refdatas/ref_data_mgmt_oracle.ref_data_mgmt_pf/table/TABLE.CUSTOMERS/download?sessionid=p3hce86dkb4rmls9peh4e8rps9' \ -u "user:passw" \ -Hd 'content-type: application/x-www-form-urlencoded' \ -d 'exportParams=%7B%22opts%22%3A%7B%22textQualifier%22%3A%22%5C'\''%22%2C%22separator%22%3A%22%3B%22%2C%22extent%22%3A%22all%22%7D%2C%22selectedColumns%22%3A%5B%22CITY%22%2C%22CUSTOMER_NAME%22%5D%7DexportParams={"opts":{"textQualifier":"'\''","separator":";","extent":"all"},"selectedColumns":["CITY","CUSTOMER_NAME"]}' > Export.csv |
Table Import
This operation performs a database table import. Input parameters are passed in a JSON format as part of the HTTP message body.
Parameters
Description
Value
Resource path
Resource path | /refdatas/<Reference Data profile>/table/<table name>/upload?sessionid= |
---|
HTTP method
The HTTP method of the import command.
POST
Basic Auth
This is a required parameter which contains the username and password.
user:passw
File Input
This is where the file input will be included in url encoding. The exportParams format will include these optional opts:
textQualifier - designated as double quotes by default.
separator - designated as a comma by default.
append/truncate - designated as append by default. Changing to truncate will result in the existing data in the table to be truncated before the import is executed.
force - designated as false by default.
Example format: file=@/<path to csv file>/test.csv 'opts={"textQualifier":"\'","separator":",","op":"append","force":false}'
file=@/path/to/import_test.csv 'opts={"textQualifier":"\'","separator":",","op":"append","force":false}'<sessionid> | |||
HTTP method | POST | ||
---|---|---|---|
File Input | This is where the file input will be included. The exportParams format will include these optional opts:
|
Rw ui textbox macro | |||||
---|---|---|---|---|---|
| |||||
Example - Table import without options
|
...
This operation saves data grid edit modification (post insert/update/delete). Changes are saved within client session. This operation requires JSON payload as input.
Note |
---|
Note!
|
Note |
---|
Note!The save operation is supported either on Oracle (based on ROWID pseudo column) or non-Oracle type tables containing Primary Key constraint. Non-Oracle tables without a Primary Key are not supported for data modifications. |
...
This operation cancels the changes made from being saved. As the input, Json payload specifies either all the changes to be canceled or lists the selected Primary Keys to be cancelled. You can cancel the saving of several changes at the same time (one Primary Key per change). The scope is single or all. The format is the same as for the Save changes operation but the ID fields are stored in a root structure. Ids are in a JSON array to hold multiple Primary Keys to be cancelled.
Note |
---|
Note!The Web UI generates surrogate Primary Keys for inserted rows for the cancel function. |
...
Rw ui textbox macro | |||||
---|---|---|---|---|---|
| |||||
Example response
|
Note |
---|
Note!
|
...