|
/cxf/bpc-core/notification
|
To add a notification, send a JSON message with the following structure:
Minimal example
{
"subject": "Replication problem",
"message": "The database 'postgresql' is not reachable",
"recipients": [ "bpcadmin" ],
"recipientsType": "role"
}
More complex example
{
"priority": 10,
"subject": "API expires soon",
"message": "API Key API-39e889a expires soon. Please contact your administrator.",
"recipients": [ "bpcadmin" ],
"recipientsType": "role",
"icon": "fa-file-certificate",
"type": "link",
"typeSpecificData": {
"targetModule": "_core",
"route" : ["_core", "apiKeys", "api", "API-39e889a"]
}
}
id (optional)
-
ID of the notification. A random UUID gets set when not given.
priority (optional)
-
Delivery priority of the notification. Can be one of the following values: 0 (Silent), 5 (Toast), 10 (Popup). 5 gets used when not given.
subject (required)
-
The subject of the notification.
message (optional)
-
The message of the notification.
recipients (required)
-
The recipients of the notification. Depends on the used recipientsType.
recipientsType (required)
-
The recipients type of the notification. Can be one of the following values: user, role or organisation.
originator (optional)
-
The originator of the notification. The login name of the user session gets used when not given.
icon (optional)
-
The Font Awesome icon which should be used when showing the notification.
type (optional)
-
The type of the notification. The type 'info' gets used when not given. Other possibility are 'warn', 'error', 'link', etc. Depending on the type, the notification is displayed accordingly in the GUI (see also Notifikationstypen und Darstellung in der Oberfläche).
typeSpecificData (optional)
-
The additional type specific data of the notification.
|
|
The added notification as JSON. Contains additionally the 'date' and 'version' fields which get automatically set/updated.
-
200 : OK
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|
|
/cxf/bpc-core/notification/{notificationId}
|
To update a notification, send a JSON message with the following structure:
Minimal example
{
"subject": "Replication problem",
"message": "The database 'postgresql' is not reachable",
"recipients": [ "bpcadmin" ],
"recipientsType": "role"
}
More complex example
{
"priority": 10,
"subject": "API expires soon",
"message": "API Key API-39e889a expires soon. Please contact your administrator.",
"recipients": [ "bpcadmin" ],
"recipientsType": "role",
"icon": "fa-file-certificate",
"type": "link",
"typeSpecificData": {
"targetModule": "_core",
"route" : ["_core", "apiKeys", "api", "API-39e889a"]
}
}
priority (optional)
-
Delivery priority of the notification. Can be one of the following values: 0 (Silent), 5 (Toast), 10 (Popup). 5 gets used when not given.
subject (required)
-
The subject of the notification.
message (optional)
-
The message of the notification.
recipients (required)
-
The recipients of the notification. Depends on the used recipientsType.
recipientsType (required)
-
The recipients type of the notification. Can be one of the following values: user, role or organisation.
originator (optional)
-
The originator of the notification. The login name of the user session gets used when not given.
icon (optional)
-
The Font Awesome icon which should be used when showing the notification.
type (optional)
-
The type of the notification. The type 'info' gets used when not given. Other possibility are 'warn', 'error', 'link', etc. Depending on the type, the notification is displayed accordingly in the GUI (see also Notifikationstypen und Darstellung in der Oberfläche).
typeSpecificData (optional)
-
The additional type specific data of the notification.
|
|
notificationId
-
the ID of the notification to update
|
The updated notification as JSON. Contains additionally the 'date' and 'version' fields which get automatically set/updated.
-
200 : OK
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|
|
/cxf/bpc-core/notification/{notificationId}
|
Delete a specific notification.
|
notificationId
-
the ID of the notification to delete
|
The deleted notification as JSON.
|
|
|
/cxf/bpc-core/notification/{notificationId}
|
Get the data of a notification.
|
notificationId
-
the ID of the notification to get the data for
|
The data of the requested notification as JSON.
|
|
|
/cxf/bpc-core/notification
|
Get the notification of the requesting user.
|
start
-
paging start parameter. Default is 0.
limit
-
number of notifications to get. Default is 1000.
|
The requested notifications of the user as JSON.
-
200 : OK
-
404 : Required service was not found
-
500 : Unexpected backend error
-
503 : Maintenance mode is active
|
|