matjaz-bravc-ctg/CQRS.MinimalAPI.Demo
38.8
Weak · 21 September 2026
752
lines of production code
C#
primary language
4
measurements over time
What this system is
This system is a .NET 8-based web API that implements the CQRS (Command Query Responsibility Segregation) pattern for managing student records. It utilizes MediatR for command and query handling, Entity Framework Core with SQLite for data access, and exposes a RESTful interface via Minimal APIs. The architecture separates write operations (commands) from read operations (queries) to optimize data schemas and enable independent scaling.
Features
Initial commit: CQRS-based Student management API
The demo application now implements a complete CQRS (Command Query Responsibility Segregation) architecture for managing students. This includes a \DataContext\ for Entity Framework Core with an initial migration, a \DataSeeder\ to populate the database with sample student records, and a set of MediatR commands and queries (Create, Delete, Update, GetAll, GetById, GetByName) with their respective handlers. These are wired to Minimal API endpoints that expose a RESTful interface for student operations, supported by a generic \BaseRepository\ and specific \StudentsRepository\ for data access.
src/CQRS.MinimalAPI.Demo · high confidence
Behavioural changes
Updated project documentation and configuration files
The README.md has been expanded to provide a comprehensive overview of the CQRS pattern implementation, detailing the separation of commands and queries, benefits such as independent scaling and optimized data schemas, and the specific technologies used (Minimal API, MediatR, SQLite, EFCore 8). The LICENSE file was updated to reflect the correct copyright year (2020). Additionally, .gitattributes and .gitignore were added/updated to handle line endings, binary files, and Visual Studio/MSBuild artifacts, while the solution file was regenerated for .NET 8.
(repo-wide) · high confidence
Dependencies
Initial commit adding .NET 8 demo project with MediatR, Entity Framework Core, and Swashbuckle
A new .NET 8 web application project has been added to the solution, establishing the baseline dependencies for the CQRS demo. The project targets .NET 8.0 and includes MediatR (v12.4.1), Microsoft.EntityFrameworkCore.Sqlite and Tools (v8.0.10), MiniValidation (v0.9.1), and Swashbuckle.AspNetCore (v7.2.0) as NuGet package references.
(dependencies) · medium confidence
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 72 → 39 (-32.9)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 100 → 100 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 76 → 51 (-24.8)
- Readiness 67 → 24 (-42.8)
- Security 88 → 40 (-47.8)
Resolved (10)
- No exposed public API
- No tests — template/sample
- XML-doc coverage: CQRS.MinimalAPI.Demo (src/CQRS.MinimalAPI.Demo/CQRS.MinimalAPI.Demo.csproj)
- early-stage repository — too little history to judge knowledge freshness
- git history depth insufficient
- git history depth insufficient
- redundant comment (src/CQRS.MinimalAPI.Demo/Data/DataSeeder.cs)
- redundant comment (src/CQRS.MinimalAPI.Demo/Program.cs)
- redundant comment (src/CQRS.MinimalAPI.Demo/Program.cs)
- single-maintainer — knowledge-concentration (bus factor) risk
New (7)
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
- Low XML-doc coverage: CQRS.MinimalAPI.Demo (src/CQRS.MinimalAPI.Demo/CQRS.MinimalAPI.Demo.csproj)
- No automated tests
- redundant comment (src/CQRS.MinimalAPI.Demo/Program.cs)
- redundant comment (src/CQRS.MinimalAPI.Demo/Program.cs)
- redundant comment (src/CQRS.MinimalAPI.Demo/Program.cs)
API surface
- Unchanged — 7 HTTP endpoints
Architecture
- Unchanged — 2 containers · 0 contexts · 0 edges
Written by watchdog.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
matjaz-bravc-ctg/CQRS.MinimalAPI.Demo was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 21 September 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 6d63d7dab6407be9663a67c68225178fede3c782 — the exact code this score is about.
- Scored under rubric-2026.09.15 — the same rubric and the same method as every other entry in this index.
- Measured by watchdog.canine.dev using codehealth-analyzer preprod-28e75b8e3254.