diff --git a/src/Radarr.Api.V3/Calendar/CalendarController.cs b/src/Radarr.Api.V3/Calendar/CalendarController.cs index e1316b20f..196193d91 100644 --- a/src/Radarr.Api.V3/Calendar/CalendarController.cs +++ b/src/Radarr.Api.V3/Calendar/CalendarController.cs @@ -37,7 +37,7 @@ namespace Radarr.Api.V3.Calendar } [NonAction] - protected override MovieResource GetResourceById(int id) + public override ActionResult GetResourceByIdWithErrorHandler(int id) { throw new NotImplementedException(); } diff --git a/src/Radarr.Api.V3/Health/HealthController.cs b/src/Radarr.Api.V3/Health/HealthController.cs index 0becdcb08..16f06b8c8 100644 --- a/src/Radarr.Api.V3/Health/HealthController.cs +++ b/src/Radarr.Api.V3/Health/HealthController.cs @@ -23,6 +23,11 @@ namespace Radarr.Api.V3.Health } [NonAction] + public override ActionResult GetResourceByIdWithErrorHandler(int id) + { + return base.GetResourceByIdWithErrorHandler(id); + } + protected override HealthResource GetResourceById(int id) { throw new NotImplementedException(); diff --git a/src/Radarr.Api.V3/Indexers/ReleaseControllerBase.cs b/src/Radarr.Api.V3/Indexers/ReleaseControllerBase.cs index 5372f194f..623c00583 100644 --- a/src/Radarr.Api.V3/Indexers/ReleaseControllerBase.cs +++ b/src/Radarr.Api.V3/Indexers/ReleaseControllerBase.cs @@ -17,6 +17,11 @@ namespace Radarr.Api.V3.Indexers } [NonAction] + public override ActionResult GetResourceByIdWithErrorHandler(int id) + { + return base.GetResourceByIdWithErrorHandler(id); + } + protected override ReleaseResource GetResourceById(int id) { throw new NotImplementedException(); diff --git a/src/Radarr.Api.V3/Movies/MovieImportController.cs b/src/Radarr.Api.V3/Movies/MovieImportController.cs index f49941bd8..c7078288d 100644 --- a/src/Radarr.Api.V3/Movies/MovieImportController.cs +++ b/src/Radarr.Api.V3/Movies/MovieImportController.cs @@ -18,6 +18,11 @@ namespace Radarr.Api.V3.Movies } [NonAction] + public override ActionResult GetResourceByIdWithErrorHandler(int id) + { + throw new NotImplementedException(); + } + protected override MovieResource GetResourceById(int id) { throw new NotImplementedException(); diff --git a/src/Radarr.Api.V3/Movies/MovieLookupController.cs b/src/Radarr.Api.V3/Movies/MovieLookupController.cs index 8a8c82498..079b9ecf5 100644 --- a/src/Radarr.Api.V3/Movies/MovieLookupController.cs +++ b/src/Radarr.Api.V3/Movies/MovieLookupController.cs @@ -39,6 +39,11 @@ namespace Radarr.Api.V3.Movies } [NonAction] + public override ActionResult GetResourceByIdWithErrorHandler(int id) + { + throw new NotImplementedException(); + } + protected override MovieResource GetResourceById(int id) { throw new NotImplementedException(); diff --git a/src/Radarr.Api.V3/Queue/QueueController.cs b/src/Radarr.Api.V3/Queue/QueueController.cs index 2be7ce5bb..ef5cc3a15 100644 --- a/src/Radarr.Api.V3/Queue/QueueController.cs +++ b/src/Radarr.Api.V3/Queue/QueueController.cs @@ -60,6 +60,11 @@ namespace Radarr.Api.V3.Queue } [NonAction] + public override ActionResult GetResourceByIdWithErrorHandler(int id) + { + return base.GetResourceByIdWithErrorHandler(id); + } + protected override QueueResource GetResourceById(int id) { throw new NotImplementedException(); diff --git a/src/Radarr.Api.V3/Queue/QueueDetailsController.cs b/src/Radarr.Api.V3/Queue/QueueDetailsController.cs index 2f0fb52eb..370109335 100644 --- a/src/Radarr.Api.V3/Queue/QueueDetailsController.cs +++ b/src/Radarr.Api.V3/Queue/QueueDetailsController.cs @@ -27,6 +27,11 @@ namespace Radarr.Api.V3.Queue } [NonAction] + public override ActionResult GetResourceByIdWithErrorHandler(int id) + { + return base.GetResourceByIdWithErrorHandler(id); + } + protected override QueueResource GetResourceById(int id) { throw new NotImplementedException(); diff --git a/src/Radarr.Api.V3/Queue/QueueStatusController.cs b/src/Radarr.Api.V3/Queue/QueueStatusController.cs index 695e8611c..5cf869037 100644 --- a/src/Radarr.Api.V3/Queue/QueueStatusController.cs +++ b/src/Radarr.Api.V3/Queue/QueueStatusController.cs @@ -31,6 +31,11 @@ namespace Radarr.Api.V3.Queue } [NonAction] + public override ActionResult GetResourceByIdWithErrorHandler(int id) + { + return base.GetResourceByIdWithErrorHandler(id); + } + protected override QueueStatusResource GetResourceById(int id) { throw new NotImplementedException(); diff --git a/src/Radarr.Api.V3/Wanted/CutoffController.cs b/src/Radarr.Api.V3/Wanted/CutoffController.cs index f43076796..4b8162cd9 100644 --- a/src/Radarr.Api.V3/Wanted/CutoffController.cs +++ b/src/Radarr.Api.V3/Wanted/CutoffController.cs @@ -33,7 +33,7 @@ namespace Radarr.Api.V3.Wanted } [NonAction] - protected override MovieResource GetResourceById(int id) + public override ActionResult GetResourceByIdWithErrorHandler(int id) { throw new NotImplementedException(); } diff --git a/src/Radarr.Api.V3/Wanted/MissingController.cs b/src/Radarr.Api.V3/Wanted/MissingController.cs index 953725782..6f5075287 100644 --- a/src/Radarr.Api.V3/Wanted/MissingController.cs +++ b/src/Radarr.Api.V3/Wanted/MissingController.cs @@ -29,7 +29,7 @@ namespace Radarr.Api.V3.Wanted } [NonAction] - protected override MovieResource GetResourceById(int id) + public override ActionResult GetResourceByIdWithErrorHandler(int id) { throw new NotImplementedException(); } diff --git a/src/Radarr.Http/REST/RestController.cs b/src/Radarr.Http/REST/RestController.cs index 3ca4388c6..38d9f5e78 100644 --- a/src/Radarr.Http/REST/RestController.cs +++ b/src/Radarr.Http/REST/RestController.cs @@ -40,7 +40,7 @@ namespace Radarr.Http.REST } [RestGetById] - public ActionResult GetResourceByIdWithErrorHandler(int id) + public virtual ActionResult GetResourceByIdWithErrorHandler(int id) { try {