[Notifications] Add new endpoint to get all sent notifications
aniri opened this issue · 3 comments
aniri commented
Add new endpoint GET /api/v1/notification/
. It should return all notifications from db.
Fields to be returned for each notification:
- id
- title
- body
- channel
- sent by - depends on #265
- date
- list of observer ids the notification was sent to
The list should be paginated and sorted by date descending.
Permissions:
- master admin (organizer) - should be able to view all sent notifications
- ngo admins (ngoadmin) should only view notifications that were sent by an admin from the same ngo
LennartKleymann commented
Hey I'd love to do that.
Can you assign me @aniri?
aniri commented
hey @LennartKleymann any updates on this issue? thanks! :D
dzoccarato commented