Skip to main content

Notification API

User API 

Get notifications for the current user

GET /notifications

Successful response:

Status: 200 OK
Content-Type: application/json
Body:
[
{
"id": 1,
"title": "title",
"message": "message",
"creationdate": 1412952637000,
"attachementURI": "testURI",
"star": 0,
"seen": false,
"archived": false
}
]

Update notification state API

Update a state of a notification

PUT /notifications/updateState/{id}
Content-Type: application/json
{
"star":0,
"seen":false,
"archived":false
}

Successful response:

Status: 200 OK

Unsuccessful response (when the notification ID is not found for the user):

Status: 404 NOT_FOUND

 

Insert Notifications for users belonging to a specific UserGroup

 

under development