Skip to content

Commit

Permalink
Remove not implemented endpoints from API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed May 13, 2024
1 parent 152f50a commit 7a303c1
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Radarr.Api.V3/Calendar/CalendarController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class CalendarController : MovieControllerWithSignalR
}

[NonAction]
protected override MovieResource GetResourceById(int id)
public override ActionResult<MovieResource> GetResourceByIdWithErrorHandler(int id)
{
throw new NotImplementedException();
}
Expand Down
5 changes: 5 additions & 0 deletions src/Radarr.Api.V3/Health/HealthController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public HealthController(IBroadcastSignalRMessage signalRBroadcaster, IHealthChec
}

[NonAction]
public override ActionResult<HealthResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}

protected override HealthResource GetResourceById(int id)
{
throw new NotImplementedException();
Expand Down
5 changes: 5 additions & 0 deletions src/Radarr.Api.V3/Indexers/ReleaseControllerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ public ReleaseControllerBase(IQualityProfileService qualityProfileService)
}

[NonAction]
public override ActionResult<ReleaseResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}

protected override ReleaseResource GetResourceById(int id)
{
throw new NotImplementedException();
Expand Down
5 changes: 5 additions & 0 deletions src/Radarr.Api.V3/Movies/MovieImportController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public MovieImportController(IAddMovieService addMovieService)
}

[NonAction]
public override ActionResult<MovieResource> GetResourceByIdWithErrorHandler(int id)
{
throw new NotImplementedException();
}

protected override MovieResource GetResourceById(int id)
{
throw new NotImplementedException();
Expand Down
5 changes: 5 additions & 0 deletions src/Radarr.Api.V3/Movies/MovieLookupController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ public class MovieLookupController : RestController<MovieResource>
}

[NonAction]
public override ActionResult<MovieResource> GetResourceByIdWithErrorHandler(int id)
{
throw new NotImplementedException();
}

protected override MovieResource GetResourceById(int id)
{
throw new NotImplementedException();
Expand Down
5 changes: 5 additions & 0 deletions src/Radarr.Api.V3/Queue/QueueController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ public class QueueController : RestControllerWithSignalR<QueueResource, NzbDrone
}

[NonAction]
public override ActionResult<QueueResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}

protected override QueueResource GetResourceById(int id)
{
throw new NotImplementedException();
Expand Down
5 changes: 5 additions & 0 deletions src/Radarr.Api.V3/Queue/QueueDetailsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public QueueDetailsController(IBroadcastSignalRMessage broadcastSignalRMessage,
}

[NonAction]
public override ActionResult<QueueResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}

protected override QueueResource GetResourceById(int id)
{
throw new NotImplementedException();
Expand Down
5 changes: 5 additions & 0 deletions src/Radarr.Api.V3/Queue/QueueStatusController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ public QueueStatusController(IBroadcastSignalRMessage broadcastSignalRMessage, I
}

[NonAction]
public override ActionResult<QueueStatusResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}

protected override QueueStatusResource GetResourceById(int id)
{
throw new NotImplementedException();
Expand Down
2 changes: 1 addition & 1 deletion src/Radarr.Api.V3/Wanted/CutoffController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class CutoffController : MovieControllerWithSignalR
}

[NonAction]
protected override MovieResource GetResourceById(int id)
public override ActionResult<MovieResource> GetResourceByIdWithErrorHandler(int id)
{
throw new NotImplementedException();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Radarr.Api.V3/Wanted/MissingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class MissingController : MovieControllerWithSignalR
}

[NonAction]
protected override MovieResource GetResourceById(int id)
public override ActionResult<MovieResource> GetResourceByIdWithErrorHandler(int id)
{
throw new NotImplementedException();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Radarr.Http/REST/RestController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected RestController()
}

[RestGetById]
public ActionResult<TResource> GetResourceByIdWithErrorHandler(int id)
public virtual ActionResult<TResource> GetResourceByIdWithErrorHandler(int id)
{
try
{
Expand Down

0 comments on commit 7a303c1

Please sign in to comment.