Notification

Return a notification.

Parameters
  • idpath integerRequired

    Return a Notification by specific id.

GET/api/v1/notifications/{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();
}

RESPONSE


Notification read

Mark a notification as read.

Parameters
  • idpath integerRequired

    Mark a notification as read by specific id.

PATCH/api/v1/notifications/{id}/mark_as_read

{
  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();
}

RESPONSE