Plugin API Resource

WS to handle plugins

POST /plugins/export/json/{domainId}

Web service to Upload Objects To External Domain Source

Example of request:

{"objects":[{"objectId":"243993","classId":"14"}]}

Request Parameters
name type description default constraints
domainId path - id of external domain   long
Request Body
media type data type
*/* object
Response Body
media type data type description
application/json object JSON Response with information about started long running process

Example of response:

{"processId":"45382499-84f9-4565-a251-71ecd48af821","state":"Started", "userName":"User name","startDate":"Fri Oct 02 11:22:28 CEST 2015","operationType":"TdxmImport"}

POST /plugins/import/json/{domainId}

Web service to Update Objects From External Domain Source

Example of request:

{"objects":[{"objectId":"243993","classId":"14"}]}

Request Parameters
name type description default constraints
domainId path - id of external domain   long
Request Body
media type data type
*/* object
Response Body
media type data type description
application/json object JSON Response with information about started long running process

Example of response:

{"processId":"45382499-84f9-4565-a251-71ecd48af821","state":"Started", "userName":"User name","startDate":"Fri Oct 02 11:22:28 CEST 2015","operationType":"TdxmImport"}

POST /plugins/properties/json/{domainId}

Web service to get properties from External Domain Source

Example of request:

{"objects":[{"objectId":"243993","classId":"14"}]}

Request Parameters
name type description default constraints
domainId path - id of external domain   long
Request Body
media type data type
*/* object
Response Body
media type data type description
application/json object JSON Response with list of properties

Example of response:

{"list":[{"key":"Name","value":"objectName"},{"key":"ID","value":"1"},{"key":"Description","value":"Object description"}]}

PUT /plugins/run/{pluginName}/{classId}/{objectId}

Run plugin with given name in the context of given object

Request Parameters
name type description default constraints
classId path class ID of context object   long
objectId path object ID of context object   long
pluginName path name of event plugin    
Response Body
media type data type description
application/json object JSON Response with info about changed object

Example of response:

{labelChanged: false, classId: "Object ID", objLabel: "Object label", objectId: "Object ID"}

PUT /plugins/run/subtree/{pluginName}/{perspId}/{classId}/{objectId}

Run plugin with given name in the context of given object with its subtree in given perspective

Request Parameters
name type description default constraints
classId path class ID of context object   long
objectId path object ID of context object   long
perspId path perspective ID to find subtree for object   long
pluginName path name of event plugin    
Response Body
media type data type description
application/json object JSON Response with info about started process

Example of response:

{"processId":"bbf2b1fc-e170-4400-a82e-ca3f5be31c9a","state":"Scheduled","userName":"John Bob","startDate":"2019-04-11T10:27:17.400819+02:00","operationType":"ModifySubTree"}