mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
parent
41492efd2e
commit
8974aa823b
@ -35,6 +35,7 @@ public CalendarController(IBroadcastSignalRMessage signalR,
|
|||||||
_configService = configService;
|
_configService = configService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NonAction]
|
||||||
protected override MovieResource GetResourceById(int id)
|
protected override MovieResource GetResourceById(int id)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
@ -22,6 +22,7 @@ public HealthController(IBroadcastSignalRMessage signalRBroadcaster, IHealthChec
|
|||||||
_healthCheckService = healthCheckService;
|
_healthCheckService = healthCheckService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NonAction]
|
||||||
protected override HealthResource GetResourceById(int id)
|
protected override HealthResource GetResourceById(int id)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using NzbDrone.Core.DecisionEngine;
|
using NzbDrone.Core.DecisionEngine;
|
||||||
using NzbDrone.Core.Profiles;
|
using NzbDrone.Core.Profiles;
|
||||||
using Radarr.Http.REST;
|
using Radarr.Http.REST;
|
||||||
@ -15,6 +16,7 @@ public ReleaseControllerBase(IProfileService qualityProfileService)
|
|||||||
_qualityProfile = qualityProfileService.GetDefaultProfile(string.Empty);
|
_qualityProfile = qualityProfileService.GetDefaultProfile(string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NonAction]
|
||||||
protected override ReleaseResource GetResourceById(int id)
|
protected override ReleaseResource GetResourceById(int id)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
@ -17,6 +17,7 @@ public MovieImportController(IAddMovieService addMovieService)
|
|||||||
_addMovieService = addMovieService;
|
_addMovieService = addMovieService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NonAction]
|
||||||
protected override MovieResource GetResourceById(int id)
|
protected override MovieResource GetResourceById(int id)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
@ -35,6 +35,7 @@ public MovieLookupController(ISearchForNewMovie searchProxy,
|
|||||||
_configService = configService;
|
_configService = configService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NonAction]
|
||||||
protected override MovieResource GetResourceById(int id)
|
protected override MovieResource GetResourceById(int id)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
@ -66,6 +66,8 @@ public List<TProviderResource> GetAll()
|
|||||||
}
|
}
|
||||||
|
|
||||||
[RestPostById]
|
[RestPostById]
|
||||||
|
[Consumes("application/json")]
|
||||||
|
[Produces("application/json")]
|
||||||
public ActionResult<TProviderResource> CreateProvider([FromBody] TProviderResource providerResource, [FromQuery] bool forceSave = false)
|
public ActionResult<TProviderResource> CreateProvider([FromBody] TProviderResource providerResource, [FromQuery] bool forceSave = false)
|
||||||
{
|
{
|
||||||
var providerDefinition = GetDefinition(providerResource, true, !forceSave, false);
|
var providerDefinition = GetDefinition(providerResource, true, !forceSave, false);
|
||||||
@ -81,6 +83,8 @@ public ActionResult<TProviderResource> CreateProvider([FromBody] TProviderResour
|
|||||||
}
|
}
|
||||||
|
|
||||||
[RestPutById]
|
[RestPutById]
|
||||||
|
[Consumes("application/json")]
|
||||||
|
[Produces("application/json")]
|
||||||
public ActionResult<TProviderResource> UpdateProvider([FromBody] TProviderResource providerResource, [FromQuery] bool forceSave = false)
|
public ActionResult<TProviderResource> UpdateProvider([FromBody] TProviderResource providerResource, [FromQuery] bool forceSave = false)
|
||||||
{
|
{
|
||||||
var providerDefinition = GetDefinition(providerResource, true, !forceSave, false);
|
var providerDefinition = GetDefinition(providerResource, true, !forceSave, false);
|
||||||
@ -98,6 +102,7 @@ public ActionResult<TProviderResource> UpdateProvider([FromBody] TProviderResour
|
|||||||
|
|
||||||
[HttpPut("bulk")]
|
[HttpPut("bulk")]
|
||||||
[Consumes("application/json")]
|
[Consumes("application/json")]
|
||||||
|
[Produces("application/json")]
|
||||||
public ActionResult<TProviderResource> UpdateProvider([FromBody] TBulkProviderResource providerResource)
|
public ActionResult<TProviderResource> UpdateProvider([FromBody] TBulkProviderResource providerResource)
|
||||||
{
|
{
|
||||||
var definitionsToUpdate = _providerFactory.Get(providerResource.Ids).ToList();
|
var definitionsToUpdate = _providerFactory.Get(providerResource.Ids).ToList();
|
||||||
@ -191,6 +196,7 @@ public object Test([FromBody] TProviderResource providerResource)
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost("testall")]
|
[HttpPost("testall")]
|
||||||
|
[Produces("application/json")]
|
||||||
public IActionResult TestAll()
|
public IActionResult TestAll()
|
||||||
{
|
{
|
||||||
var providerDefinitions = _providerFactory.All()
|
var providerDefinitions = _providerFactory.All()
|
||||||
@ -214,6 +220,8 @@ public IActionResult TestAll()
|
|||||||
|
|
||||||
[SkipValidation]
|
[SkipValidation]
|
||||||
[HttpPost("action/{name}")]
|
[HttpPost("action/{name}")]
|
||||||
|
[Consumes("application/json")]
|
||||||
|
[Produces("application/json")]
|
||||||
public IActionResult RequestAction(string name, [FromBody] TProviderResource resource)
|
public IActionResult RequestAction(string name, [FromBody] TProviderResource resource)
|
||||||
{
|
{
|
||||||
var providerDefinition = GetDefinition(resource, false, false, false);
|
var providerDefinition = GetDefinition(resource, false, false, false);
|
||||||
|
@ -58,6 +58,7 @@ public QueueController(IBroadcastSignalRMessage broadcastSignalRMessage,
|
|||||||
_qualityComparer = new QualityModelComparer(qualityProfileService.GetDefaultProfile(string.Empty));
|
_qualityComparer = new QualityModelComparer(qualityProfileService.GetDefaultProfile(string.Empty));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NonAction]
|
||||||
protected override QueueResource GetResourceById(int id)
|
protected override QueueResource GetResourceById(int id)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
@ -26,6 +26,7 @@ public QueueDetailsController(IBroadcastSignalRMessage broadcastSignalRMessage,
|
|||||||
_pendingReleaseService = pendingReleaseService;
|
_pendingReleaseService = pendingReleaseService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NonAction]
|
||||||
protected override QueueResource GetResourceById(int id)
|
protected override QueueResource GetResourceById(int id)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
@ -30,6 +30,7 @@ public QueueStatusController(IBroadcastSignalRMessage broadcastSignalRMessage, I
|
|||||||
_broadcastDebounce = new Debouncer(BroadcastChange, TimeSpan.FromSeconds(5));
|
_broadcastDebounce = new Debouncer(BroadcastChange, TimeSpan.FromSeconds(5));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[NonAction]
|
||||||
protected override QueueStatusResource GetResourceById(int id)
|
protected override QueueStatusResource GetResourceById(int id)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
Loading…
Reference in New Issue
Block a user