feat(api): settings read/write endpoints (#93)
GET/PUT /api/settings/{ffmpeg,playout,xmltv,scanner,logging,ui,hdhr}
wrapping the existing MediatR settings handlers, plus custom resolution
list/create/delete under /api/settings/resolutions. String-enum OpenAPI
schemas extended to OutputFormatKind + LogEventLevel.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using ErsatzTV.Application.Configuration;
|
||||
|
||||
namespace ErsatzTV.Controllers.Api.Requests;
|
||||
|
||||
public record UpdatePlayoutSettingsRequest(int DaysToBuild, bool SkipMissingItems, int ScriptedScheduleTimeoutSeconds)
|
||||
{
|
||||
public UpdatePlayoutSettings ToCommand() =>
|
||||
new(
|
||||
new PlayoutSettingsViewModel
|
||||
{
|
||||
DaysToBuild = DaysToBuild,
|
||||
SkipMissingItems = SkipMissingItems,
|
||||
ScriptedScheduleTimeoutSeconds = ScriptedScheduleTimeoutSeconds
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user