This application provides an ultra-simple API for publishing notifications to be displayed on various web applications.
A notification has the following properties:
(Guid) Id
(string) Message
(DateTime) DisplayStart
(DateTime) DisplayEnd
(bool) Active
The DisplayStart, DisplayEnd, and Active properties control when and if the notification should be displayed.
Returns OK if the API is running.
Returns the application version.
Returns all notifications that are currently active and should be displayed based on the current date and time.
Returns all notifications that are scheduled to be displayed in the future.
The following endpoints are for administrators and require a valid API key (passed in using the X-API-Key header).
Valid API keys are configured in the appsettings.json file:
{
"ApiKeys": [
"client-api-key-1",
"client-api-key-2"
]
}Returns all notifications, including those that have been deactivated or are expired.
Creates a new notification. The request body must contain these fields:
{
"Message": "Notification message",
"DisplayStart": "2025-06-25T08:00",
"DisplayEnd": "2050-08-01T21:00"
}Deactivates a specified notification. The request body contains only the notification ID:
{
"Id": "00000000-0000-0000-0000-000000000001"
}