feat(api): add schedule REST endpoints #50

Merged
timothy merged 1 commits from feature/36-rest-api-schedules into main 2026-06-29 18:17:41 +02:00
Owner

Summary

  • Add REST CRUD endpoints for schedules and schedule item add/replace/delete endpoints under /api/schedules.
  • Add explicit schedule request DTOs, including schedule item PlayoutMode discriminator for TPT-backed item subtypes.
  • Preserve ProblemDetails 404/422 mapping and API-key write-filter conventions from the prior REST slices.
  • Add schedule handler characterization tests and SQLite integration coverage proving schedule item TPT subtype rows are written for add and replace.
  • Regenerate ErsatzTV/wwwroot/openapi/v1.json and document schedule 404/422 ProblemDetails plus string enum item discriminator schema.

Verification

  • LSP diagnostics clean on changed C# files
  • scripts/update-openapi.sh
  • dotnet build ErsatzTV.sln
  • TZ=UTC dotnet test ErsatzTV.sln -v normal

Refs #36

## Summary - Add REST CRUD endpoints for schedules and schedule item add/replace/delete endpoints under `/api/schedules`. - Add explicit schedule request DTOs, including schedule item `PlayoutMode` discriminator for TPT-backed item subtypes. - Preserve ProblemDetails 404/422 mapping and API-key write-filter conventions from the prior REST slices. - Add schedule handler characterization tests and SQLite integration coverage proving schedule item TPT subtype rows are written for add and replace. - Regenerate `ErsatzTV/wwwroot/openapi/v1.json` and document schedule 404/422 ProblemDetails plus string enum item discriminator schema. ## Verification - LSP diagnostics clean on changed C# files - `scripts/update-openapi.sh` - `dotnet build ErsatzTV.sln` - `TZ=UTC dotnet test ErsatzTV.sln -v normal` Refs #36
timothy added 1 commit 2026-06-29 08:13:57 +02:00
feat(api): add schedule REST endpoints
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 3m40s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 4m52s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
b552905799
Refs #36
timothy merged commit 4f8b3042db into main 2026-06-29 18:17:41 +02:00
timothy deleted branch feature/36-rest-api-schedules 2026-06-29 18:17:41 +02:00
Sign in to join this conversation.