From 7a303c1ebf732667ab74b9d6a23bdc7f8340b486 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Tue, 14 May 2024 02:52:09 +0300 Subject: [PATCH] Remove not implemented endpoints from API docs --- src/Radarr.Api.V3/Calendar/CalendarController.cs | 2 +- src/Radarr.Api.V3/Health/HealthController.cs | 5 +++++ src/Radarr.Api.V3/Indexers/ReleaseControllerBase.cs | 5 +++++ src/Radarr.Api.V3/Movies/MovieImportController.cs | 5 +++++ src/Radarr.Api.V3/Movies/MovieLookupController.cs | 5 +++++ src/Radarr.Api.V3/Queue/QueueController.cs | 5 +++++ src/Radarr.Api.V3/Queue/QueueDetailsController.cs | 5 +++++ src/Radarr.Api.V3/Queue/QueueStatusController.cs | 5 +++++ src/Radarr.Api.V3/Wanted/CutoffController.cs | 2 +- src/Radarr.Api.V3/Wanted/MissingController.cs | 2 +- src/Radarr.Http/REST/RestController.cs | 2 +- 11 files changed, 39 insertions(+), 4 deletions(-) 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 @@ public CalendarController(IBroadcastSignalRMessage signalR, } [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 @@ public HealthController(IBroadcastSignalRMessage signalRBroadcaster, IHealthChec } [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 @@ public ReleaseControllerBase(IQualityProfileService qualityProfileService) } [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 @@ public MovieImportController(IAddMovieService addMovieService) } [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 @@ public MovieLookupController(ISearchForNewMovie searchProxy, } [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 @@ public QueueController(IBroadcastSignalRMessage broadcastSignalRMessage, } [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 @@ public QueueDetailsController(IBroadcastSignalRMessage broadcastSignalRMessage, } [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 @@ public QueueStatusController(IBroadcastSignalRMessage broadcastSignalRMessage, I } [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 @@ public CutoffController(IMovieCutoffService movieCutoffService, } [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 @@ public MissingController(IMovieService movieService, } [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 @@ protected RestController() } [RestGetById] - public ActionResult GetResourceByIdWithErrorHandler(int id) + public virtual ActionResult GetResourceByIdWithErrorHandler(int id) { try {