diff --git a/Jellyfin.Api/Controllers/NotificationsController.cs b/Jellyfin.Api/Controllers/NotificationsController.cs
index bb9f5a7b3c..0bf3aa1b47 100644
--- a/Jellyfin.Api/Controllers/NotificationsController.cs
+++ b/Jellyfin.Api/Controllers/NotificationsController.cs
@@ -43,8 +43,8 @@ namespace Jellyfin.Api.Controllers
/// An optional limit on the number of notifications returned.
/// A read-only list of all of the user's notifications.
[HttpGet("{UserID}")]
- [ProducesResponseType(typeof(NotificationResultDto), StatusCodes.Status200OK)]
- public NotificationResultDto GetNotifications(
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ public ActionResult GetNotifications(
[FromRoute] string userId,
[FromQuery] bool? isRead,
[FromQuery] int? startIndex,
@@ -59,8 +59,8 @@ namespace Jellyfin.Api.Controllers
/// The user's ID.
/// Notifications summary for the user.
[HttpGet("{UserID}/Summary")]
- [ProducesResponseType(typeof(NotificationsSummaryDto), StatusCodes.Status200OK)]
- public NotificationsSummaryDto GetNotificationsSummary(
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ public ActionResult GetNotificationsSummary(
[FromRoute] string userId)
{
return new NotificationsSummaryDto();
@@ -71,8 +71,8 @@ namespace Jellyfin.Api.Controllers
///
/// All notification types.
[HttpGet("Types")]
- [ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)]
- public IEnumerable GetNotificationTypes()
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ public ActionResult> GetNotificationTypes()
{
return _notificationManager.GetNotificationTypes();
}
@@ -82,10 +82,10 @@ namespace Jellyfin.Api.Controllers
///
/// All notification services.
[HttpGet("Services")]
- [ProducesResponseType(typeof(IEnumerable), StatusCodes.Status200OK)]
- public IEnumerable GetNotificationServices()
+ [ProducesResponseType(StatusCodes.Status200OK)]
+ public ActionResult> GetNotificationServices()
{
- return _notificationManager.GetNotificationServices();
+ return _notificationManager.GetNotificationServices().ToList();
}
///
@@ -97,7 +97,7 @@ namespace Jellyfin.Api.Controllers
/// The level of the notification.
[HttpPost("Admin")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public void CreateAdminNotification(
+ public ActionResult CreateAdminNotification(
[FromQuery] string name,
[FromQuery] string description,
[FromQuery] string? url,
@@ -114,6 +114,8 @@ namespace Jellyfin.Api.Controllers
};
_notificationManager.SendNotification(notification, CancellationToken.None);
+
+ return Ok();
}
///
@@ -123,10 +125,11 @@ namespace Jellyfin.Api.Controllers
/// A comma-separated list of the IDs of notifications which should be set as read.
[HttpPost("{UserID}/Read")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public void SetRead(
+ public ActionResult SetRead(
[FromRoute] string userId,
[FromQuery] string ids)
{
+ return Ok();
}
///
@@ -136,10 +139,11 @@ namespace Jellyfin.Api.Controllers
/// A comma-separated list of the IDs of notifications which should be set as unread.
[HttpPost("{UserID}/Unread")]
[ProducesResponseType(StatusCodes.Status200OK)]
- public void SetUnread(
+ public ActionResult SetUnread(
[FromRoute] string userId,
[FromQuery] string ids)
{
+ return Ok();
}
}
}