...
This operation retrieves table metadata for viewing or that can be used for viewing or to extract derive parameters for other REST APIs. If Last Update feature is enabled, the values stored in the most recent Last Update user and timestamp column will be retrieved as well. The result is returned synchronously.
...
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 input. The rowsPerPage
value is the max number of rows(Data Set size) that can be in a rowset
of the retrieved result.
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. |
...
Rw ui textbox macro |
---|
|
Example - Get query with JSON payload Code Block |
---|
| $ curl -X PUT -T="example.json" -u user:passw \
http://localhost:9000/api/v1/refdatas/Default.refprofile_star/table/APP.STAR/rowset? \
sessionid=vusncl88sjghv7h8nkb0ohja6t \
-d '{"executeQuery": {"rowsPerPage":500,"selectedColumns":["ID","FIRSTNAME","LASTNAME"]}}' |
|
Rw ui textbox macro |
---|
|
Example - Get query using a JSON payload file Code Block |
---|
| $ curl -X PUT -T="Example.json" -u user:passw \
http://localhost:9000/api/v1/refdatas/Default.refprofile_star/table/APP.STAR/rowset? \
sessionid=vusncl88sjghv7h8nkb0ohja6t |
Example.json file Code Block |
---|
| {
"executeQuery": {
"rowsPerPage": 1024,
"tableName": "APP.STAR",
"selectedColumns": ["ID", "FIRSTNAME", "LASTNAME"]
}
} |
|
...
Rw ui textbox macro |
---|
|
Example json Code Block |
---|
| {
"dataEdit": {
"refProfile": "Default.refTest",
"tableName": "MZADMIN.REFRENCE_DATA",
"updates": [{
"action": "insert",
"values": [{
"column": "ID",
"value": 645
}, {
"column": "FIRSTNAME",
"value": "Roberts"
}, {
"column": "LASTNAME",
"value": "Polis"
}]
}]
}
} |
|
...
Rw ui textbox macro |
---|
|
Example json Code Block |
---|
| {
"dataEdit": {
"scope": "single",
"ids": [{
"id": [{
"column": "ORDER_NUM",
"value": 10398005
}]
}]
}
} |
|
...