Hiding "enable" property in API docs for applications

This commit is contained in:
Bogdan
2024-08-20 17:28:11 +03:00
parent 0391537a60
commit 31f057c097
2 changed files with 5 additions and 0 deletions

View File

@@ -1,11 +1,15 @@
using NzbDrone.Core.Applications;
using Swashbuckle.AspNetCore.Annotations;
namespace Prowlarr.Api.V1.Applications
{
public class ApplicationResource : ProviderResource<ApplicationResource>
{
public ApplicationSyncLevel SyncLevel { get; set; }
[SwaggerIgnore]
public bool Enable { get; set; }
public string TestCommand { get; set; }
}

View File

@@ -5,6 +5,7 @@
<ItemGroup>
<PackageReference Include="FluentValidation" Version="9.5.4" />
<PackageReference Include="NLog" Version="5.3.3" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="6.6.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NzbDrone.Core\Prowlarr.Core.csproj" />