Macro admin API Resource

Abstract class for REST webservices

POST /admin/macro

Add macro to database

Request Body
media type data type description
application/json object

Example of request:

{"macroName":"55","perspectiveSetId":"9","targetClassId":"104","targetFieldName":"fi2prop_id"}
Response Body
media type data type description
application/json object JSON Response with the specified object properties. Properties are in format {propertyName, "fieldName":propertyName}.

Example of response:

{"list":[{"id":1,"macroName":"55","perspectiveSetId":9,"targetClassId":104,"targetFieldName":"fi2prop_id"}],"success":true}

DELETE /admin/macro/{macroId}

Delete macro from database

Request Parameters
name type description default constraints
macroId path of macro to be deleted   long
Response Body
media type data type description
application/json object success: true/false

PUT /admin/macro/{macroId}

update macro in database

Request Parameters
name type description default constraints
macroId path of macro to be updated   long
Request Body
media type data type description
application/json object

Example of request:

{"id":1,"macroName":"55","perspectiveSetId":"9","targetClassId":"104","targetFieldName":"fi2prop_id"} *
Response Body
media type data type description
application/json object success: true/false