Mdq Table Interface
MdqTableRestfulApi class
Generate the DDL statement for the new library table
Interface address:/api/rest_j/v1/datasource/displaysql
Request method: POST
Request data type: application/json
Response data type: */*
Interface description:
Generate DDL statement for new library table
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| table | Table | String | false | String |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 201 | Created | |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Get partition statistics
Interface address:/api/rest_j/v1/datasource/getPartitionStatisticInfo
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Get partition statistics
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| database | Datasource | query | false | string | |
| partitionSort | Partition Sort | String | false | String | |
| tableName | table name | query | false | string | |
| partitionPath | partitionPath | query | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Get table information
Interface address:/api/rest_j/v1/datasource/getTableBaseInfo
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Get table information
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| database | Datasource | query | false | string | |
| tableName | table name | query | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Get table field information
Interface address:/api/rest_j/v1/datasource/getTableFieldsInfo
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Get table field information
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| database | Datasource | query | false | string | |
| tableName | table name | query | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}
Get table statistics
Interface address:/api/rest_j/v1/datasource/getTableStatisticInfo
Request method: GET
Request data type: application/x-www-form-urlencoded
Response data type: */*
Interface description:
Get table statistics
Request Parameters:
| Parameter name | Parameter description | Request type | Required | Data type | schema |
|---|---|---|---|---|---|
| database | Datasource | query | false | string | |
| pageNow | page number | query | false | string | |
| pageSize | page size | query | false | string | |
| partitionSort | Partition Sort | query | false | string | |
| tableName | table name | query | false | string |
Response Status:
| Status code | Description | schema |
|---|---|---|
| 200 | OK | Message |
| 401 | Unauthorized | |
| 403 | Forbidden | |
| 404 | Not Found |
Response parameters:
| parameter name | parameter description | type | schema |
|---|---|---|---|
| data | Dataset | object | |
| message | Description | string | |
| method | request url | string | |
| status | Status | integer(int32) | integer(int32) |
Sample Response:
{
"data": {},
"message": "",
"method": "",
"status": 0
}