Notification
Return a notification.
Parameters
idpath integerRequired
Return a Notification by specific
id
.
{
const res = await fetch(`${BASE_URL}/api/v1/notifications/${id}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)});
const data = await res.json();
}
Notification read
Mark a notification as read.
Parameters
idpath integerRequired
Mark a notification as read by specific
id
.
{
const res = await fetch(`${BASE_URL}/api/v1/notifications/${id}/mark_as_read`, {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)});
const data = await res.json();
}