Abstract class for REST webservices
Add macro to database
media type | data type | description |
---|---|---|
application/json | HdcMacroInputTO (JSON) | Example of request:
{"macroName":"55","perspectiveSetId":"9","targetClassId":"104","targetFieldName":"fi2prop_id"}
|
media type | data type | description |
---|---|---|
application/json | HdcSuccessWithIds (JSON) | 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}
|
POST /api/admin/macro
Content-Type: application/json
Accept: application/json
{ }
HTTP/1.1 201 Created
Content-Type: application/json
{ }
Delete macro from database
name | type | description | constraints |
---|---|---|---|
macroId | path | of macro to be deleted | long |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | success: true/false |
DELETE /api/admin/macro/{macroId}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{ }
update macro in database
name | type | description | constraints |
---|---|---|---|
macroId | path | of macro to be updated | long |
media type | data type | description |
---|---|---|
application/json | HdcMacroTO (JSON) | Example of request:
{"id":1,"macroName":"55","perspectiveSetId":"9","targetClassId":"104","targetFieldName":"fi2prop_id"}
* |
media type | data type | description |
---|---|---|
application/json | HdcSuccessTO (JSON) | success: true/false |
PUT /api/admin/macro/{macroId}
Content-Type: application/json
Accept: application/json
{ }
HTTP/1.1 204 No Content
Content-Type: application/json
{ }