Skip to content

feat: add movie creation endpoint - #25

Merged
marciomyst merged 1 commit into
developfrom
011-create-movie
May 6, 2026
Merged

feat: add movie creation endpoint#25
marciomyst merged 1 commit into
developfrom
011-create-movie

Conversation

@marciomyst

Copy link
Copy Markdown
Owner

Summary

Implements the first movie catalog vertical slice for issue #11.

  • Adds POST /api/movies with explicit request/response contracts.
  • Adds a minimal Movie domain model, Application command handler, EF Core persistence, and migration.
  • Adds validation for required fields, release year range, country code, genres, and duration.
  • Updates API/domain/architecture docs and Spec Kit artifacts.

Impact

  • API clients can create global movie catalog records without authentication for this slice.
  • Successful creates return 201 Created, Location: /api/movies/{id}, and a stable movie response body.
  • Invalid input returns ASP.NET Core ValidationProblemDetails.

Validation

  • dotnet test backend/tests/SmartMovieCatalog.Domain.Tests/SmartMovieCatalog.Domain.Tests.csproj
  • dotnet test backend/tests/SmartMovieCatalog.Application.Tests/SmartMovieCatalog.Application.Tests.csproj
  • dotnet test backend/tests/SmartMovieCatalog.Api.Tests/SmartMovieCatalog.Api.Tests.csproj
  • dotnet test backend/tests/SmartMovieCatalog.Infrastructure.Tests/SmartMovieCatalog.Infrastructure.Tests.csproj
  • dotnet build SmartMovieCatalog.slnx

Notes

  • GET /api/movies/{id} remains out of scope.
  • Frontend movie creation UI remains out of scope.
  • Existing unrelated local edits under specs/023-authentication-login-screen/* were not included.

Closes #11

@marciomyst
marciomyst marked this pull request as ready for review May 6, 2026 02:30
@marciomyst
marciomyst merged commit 19b57e9 into develop May 6, 2026
4 of 5 checks passed
@sonarqubecloud

sonarqubecloud Bot commented May 6, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create movie

1 participant