Remove not implemented endpoints from API docs

This commit is contained in:
Bogdan
2023-06-21 08:00:04 +03:00
parent c7399cdd2b
commit fcf057a019
6 changed files with 27 additions and 1 deletions

View File

@@ -23,6 +23,11 @@ namespace Readarr.Api.V1.Health
}
[NonAction]
public override ActionResult<HealthResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}
protected override HealthResource GetResourceById(int id)
{
throw new NotImplementedException();

View File

@@ -9,6 +9,11 @@ namespace Readarr.Api.V1.Indexers
public abstract class ReleaseControllerBase : RestController<ReleaseResource>
{
[NonAction]
public override ActionResult<ReleaseResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}
protected override ReleaseResource GetResourceById(int id)
{
throw new NotImplementedException();

View File

@@ -58,6 +58,11 @@ namespace Readarr.Api.V1.Queue
}
[NonAction]
public override ActionResult<QueueResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}
protected override QueueResource GetResourceById(int id)
{
throw new NotImplementedException();

View File

@@ -27,6 +27,11 @@ namespace Readarr.Api.V1.Queue
}
[NonAction]
public override ActionResult<QueueResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}
protected override QueueResource GetResourceById(int id)
{
throw new NotImplementedException();

View File

@@ -31,6 +31,11 @@ namespace Readarr.Api.V1.Queue
}
[NonAction]
public override ActionResult<QueueStatusResource> GetResourceByIdWithErrorHandler(int id)
{
return base.GetResourceByIdWithErrorHandler(id);
}
protected override QueueStatusResource GetResourceById(int id)
{
throw new NotImplementedException();

View File

@@ -39,7 +39,8 @@ namespace Readarr.Http.REST
}
[RestGetById]
public ActionResult<TResource> GetResourceByIdWithErrorHandler(int id)
[Produces("application/json")]
public virtual ActionResult<TResource> GetResourceByIdWithErrorHandler(int id)
{
try
{