You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using NzbDrone.Core.Profiles;
|
|
|
|
using Prowlarr.Http;
|
|
|
|
|
|
|
|
namespace Prowlarr.Api.V1.Profiles.App
|
|
|
|
{
|
|
|
|
[V1ApiController("appprofile/schema")]
|
|
|
|
public class QualityProfileSchemaController : Controller
|
|
|
|
{
|
|
|
|
private readonly IProfileService _profileService;
|
|
|
|
|
|
|
|
public QualityProfileSchemaController(IProfileService profileService)
|
|
|
|
{
|
|
|
|
_profileService = profileService;
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpGet]
|
|
|
|
[Produces("application/json")]
|
|
|
|
public AppProfileResource GetSchema()
|
|
|
|
{
|
|
|
|
var qualityProfile = _profileService.GetDefaultProfile(string.Empty);
|
|
|
|
|
|
|
|
return qualityProfile.ToResource();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|