Skip to main content
Version: Next(1.6.0)

Engine Plugin API

EnginePluginRestful class

refresh

Interface address:/api/rest_j/v1/engineplugin/refresh

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Refresh a single resource

Request Parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
ecTypetypequeryfalsestring
versionversionqueryfalsestring

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

{
"data": {},
"message": "",
"method": "",
"status": 0
}

refresh all

Interface address:/api/rest_j/v1/engineplugin/refreshAll

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type: */*

Interface description:

Refresh all ec resources

Request Parameters:

No

Response Status:

Status codeDescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
dataDatasetobject
messageDescriptionstring
methodrequest urlstring
statusStatusinteger(int32)integer(int32)

Sample Response:

{
"data": {},
"message": "",
"method": "",
"status": 0
}

rollback

Interface address: /api/rest_j/v1/engineplugin/rollBack

Request method:POST

Request data type: application/x-www-form-urlencoded

Response data type:*/*

Interface Description:

Roll back the material version of the current engine plugin

Request parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
engineConnBmlResourceEngineConnBmlResource entitybodytrueEngineConnBmlResource

Response Status:

status codedescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
datadatasetobject
messagedescriptionstring
methodrequest urlstring
statusstatusinteger(int32)integer(int32)

Response Example:

{
"method": null,
"status": 0,
"message": "OK",
"data": {}
}

Get all versions of the engine in the material

Interface address:/api/rest_j/v1/engineplugin/getVersionList

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type:*/*

Interface Description:

Get all versions of the engine plugin in the material management system

Request parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
bmlResourceIdengine material resource idbodytrueEngineConnBmlResource
ecTypeengine namebodyfalseString
versionengine versionbodyfalseString

Response Status:

status codedescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
datadatasetobject
messagedescriptionstring
methodrequest urlstring
statusstatusinteger(int32)integer(int32)

Response Example:

{
"method": null,
"status": 0,
"message": "OK",
"data": {}
}

Get all engine names

Interface address:/api/rest_j/v1/engineplugin/getTypeList

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type:*/*

Interface Description:

Get all types of engine names

Request parameters

Response Status:

status codedescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
datadatasetobject
messagedescriptionstring
methodrequest urlstring
statusstatusinteger(int32)integer(int32)

Response Example:

{
"method": null,
"status": 0,
"message": "OK",
"data": {
"typeList": [
"hive",
"io_file",
"jdbc",
"open look",
"python",
"shell",
"spark"
]
}
}

Get all versions of the engine

Interface address: /api/rest_j/v1/engineplugin/getTypeVersionList/{type}

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type:*/*

Interface Description:

Get all types of engine names

Request parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
typetype name of the enginepathtrueString

Response Status:

status codedescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
datadatasetobject
messagedescriptionstring
methodrequest urlstring
statusstatusinteger(int32)integer(int32)

Response Example:

{
"method": null,
"status": 0,
"message": "OK",
"data": {
"queryList": [
"v4"
]
}
}

Update engine plugin

Interface address:/api/rest_j/v1/engineplugin/updateEnginePluginBML

Request method: POST

Request data type: application/x-www-form-urlencoded

Response data type:*/*

Interface Description:

Update specific engine plugins

Request parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
fileengine material filebodytrueMultipartFile
ecTypeengine type namebodytrueString
versionengine versionbodytrueString

Response Status:

status codedescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
datadatasetobject
messagedescriptionstring
methodrequest urlstring
statusstatusinteger(int32)integer(int32)

Response Example:

{
"method": null,
"status": 0,
"message": "OK",
"data": {
"mess": "upload file success"
}
}

Engine Plugins

Interface address: /api/rest_j/v1/engineplugin/list

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type:*/*

Interface Description:

Request all engine plugin information

Request parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
currentPagecurrent pagequreytrueinteger(int32)
ecTypeengine type namequreyfalseString
versionengine versionqureyfalseString
pageSizepage sizequreytrueinteger(int32)

Response Status:

status codedescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
datadatasetobject
messagedescriptionstring
methodrequest urlstring
statusstatusinteger(int32)integer(int32)

Response Example:

{
"method": null,
"status": 0,
"message": "OK",
"data": {
"totalPage": 17,
"queryList": [
{
"id": 239,
"engineConnType": "python",
"version": "python2",
"fileName": "lib.zip",
"lastModified": 1661950452000,
"fileSize": 6093507,
"bmlResourceId": "8edb8e88-fc75-4ce3-a330-3ece9ec533cb",
"bmlResourceVersion": "v000001",
"createTime": "2022-08-31 20:56:59",
"lastUpdateTime": "2022-08-31 20:56:59"
},
{
"id": 238,
"engineConnType": "python",
"version": "python2",
"fileName": "conf.zip",
"lastModified": 1661950450000,
"fileSize": 43841,
"bmlResourceId": "a46beb9b-7368-4900-a2a6-241f1ec49002",
"bmlResourceVersion": "v000001",
"createTime": "2022-08-31 20:56:54",
"lastUpdateTime": "2022-08-31 20:56:54"
}
]
}
}

New engine plugin

Interface address:/api/rest_j/v1/engineplugin/uploadEnginePluginBML

Request method: POST

Request data type: application/x-www-form-urlencoded

Response data type:*/*

Interface Description:

Upload a new engine plugin

Request parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
fileengine material file compression packagebodytrueMultipartFile

Response Status:

status codedescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
datadatasetobject
messagedescriptionstring
methodrequest urlstring
statusstatusinteger(int32)integer(int32)

Response Example:

{
"method": null,
"status": 0,
"message": "OK",
"data": {
"mess": "upload file success"
}
}

Remove engine plugins

Interface address:/api/rest_j/v1/engineplugin/deleteEnginePluginBML

Request method: GET

Request data type: application/x-www-form-urlencoded

Response data type:*/*

Interface Description:

Delete the specified engine plugin

Request parameters:

Parameter nameParameter descriptionRequest typeRequiredData typeschema
ecTypeengine type namequreytrueString
versionengine versionqureyfalseString

Response Status:

status codedescriptionschema
200OKMessage
401Unauthorized
403Forbidden
404Not Found

Response parameters:

parameter nameparameter descriptiontypeschema
datadata setobject
messagedescriptionstring
methodrequest urlstring
statusstatusinteger(int32)integer(int32)

Response Example:

{"method":null,"status":0,"message":"OK","data":{"msg":"delete successfully"}}