Skip to content

Adds API endpoints for user notifications#571

Merged
djperrefort merged 35 commits into
mainfrom
notification_endpoints
Jun 11, 2025
Merged

Adds API endpoints for user notifications#571
djperrefort merged 35 commits into
mainfrom
notification_endpoints

Conversation

@djperrefort
Copy link
Copy Markdown
Member

@djperrefort djperrefort commented May 17, 2025

Adds API endpoints for managing automatically generated user notifications.

New endpoints include:

  • /notification/notifications/: A read only endpoint used to list the authenticated users notifications. Staff members are only returned their own notifications, which diverges from the design of most other endpoints.
  • /notification/notifications/{pk}/: An endpoint for managing individual notification records. The read field is writable and used to indicate whether a user has "read" a notification. All other fields are read only.
  • /notifications/preferences/: Lists user notification preferences. The system falls back to default preferences when user specific records are not available. Staff members can edit preferences for other users.
  • /notifications/preferences/{pk}/: Endpoint for managing individual notification preferences.

@djperrefort djperrefort linked an issue May 17, 2025 that may be closed by this pull request
@djperrefort djperrefort marked this pull request as draft May 18, 2025 14:02
@djperrefort djperrefort modified the milestone: 547 May 25, 2025
@djperrefort djperrefort force-pushed the notification_endpoints branch from b28a008 to 2b104b6 Compare June 11, 2025 01:33
@djperrefort djperrefort marked this pull request as ready for review June 11, 2025 14:26
@djperrefort djperrefort merged commit 545f49a into main Jun 11, 2025
16 of 17 checks passed
@djperrefort djperrefort deleted the notification_endpoints branch June 11, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add API endpoint for user notifications

1 participant