referbruv/SwaggerHeroes
48.7
Weak · 21 September 2026
566
lines of production code
C#
primary language
4
measurements over time
What this system is
SwaggerHeroes is a .NET 6 ASP.NET Core web application that demonstrates API versioning and Swagger UI integration. It provides a layered architecture with a SQLite persistence layer for managing 'hero' entities, exposing both v1 and v2 API endpoints. The system features multi-version API documentation with Bearer token security and configuration-driven metadata.
Features
Initial project structure and documentation
The repository was initialized with a .NET 6 ASP.NET Core solution named SwaggerHeroes, which demonstrates integrating Swagger UI with API versioning. This update adds the foundational project files, including the solution file (SwaggerNinja.sln) defining the WebApi, Core, and Persistence projects, alongside a .gitignore configuration. Documentation is also established with a comprehensive README.md and an MIT LICENSE.md file.
(repo-wide) · high confidence
Introduce SQLite persistence layer for hero data
Added a new SQLite-based persistence implementation for the application. This includes a database context (HeroesContext) and an initial migration that creates the 'Heroes' table with columns for name, powers, cape status, creation date, alive status, and category. A generic Repository\<T\> base class and a concrete HeroesRepository are provided to handle data access, while a DataService class wires the repository to the context. The setup is registered via a ServiceExtensions method that configures the SQLite connection.
SwaggerHeroes.Persistence · high confidence
Launch of v1 and v2 API endpoints with Swagger UI integration
The WebApi project now exposes both v1 and v2 API controllers for managing heroes, enabling users to interact with the service through two distinct API versions. The v1 controller is marked as deprecated, while v2 introduces additional capabilities such as retrieving available categories. Additionally, the Swagger UI is configured to display API specification details (title, description, author, and website) sourced from the application's configuration file, providing better documentation for API consumers.
SwaggerHeroes.WebApi · high confidence
Behavioural changes
Adds Swagger UI configuration with multi-version support and Bearer token security
The application now configures Swagger UI to display API documentation for all discovered API versions, with each version presented as a separate endpoint in the UI. Additionally, Bearer token authentication is enabled in the Swagger UI, allowing users to authorize requests directly from the documentation interface. The API title, description, author, and website are now read from the application's configuration (appsettings) and displayed in the Swagger UI header.
SwaggerHeroes.Contracts · medium confidence
Dependencies
Introduce .NET 6.0-based layered architecture with SQLite persistence
The project structure is updated to use .NET 6.0 across the core contracts, persistence, and WebApi layers. The persistence layer now references Microsoft.EntityFrameworkCore.Sqlite (v6.0.1) and related EF Core tools, enabling SQLite-based data access. The WebApi layer references the persistence and core projects, establishing a layered architecture that supports a DbContext with SQLite.
(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
This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings — which rule fired, in which file, on which line, and how to fix it — are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.
Score
- CAI 49 → 49 (-0.0)
- Rubric changed (rubric-2026.08.19 → rubric-2026.09.15) — scores are not directly comparable.
Lenses
- Code Health 92 → 89 (-3.4)
- Architecture 82 → 82 (+0.0)
- Maturity 51 → 51 (+0.0)
- Readiness 40 → 40 (+0.0)
- Security 46 → 47 (+0.4)
Resolved (8)
- High: security finding (details withheld)
- High: security finding (details withheld)
- No exposed public API
- early-stage repository — too few commits for a meaningful bus factor
- early-stage repository — too little history to judge knowledge freshness
- git history depth insufficient
- git history depth insufficient
- redundant comment (SwaggerHeroes.Contracts/Options/ConfigureSwaggerOptions.cs)
New (15)
- Documentation: no contributor guidance (README.md)
- Documentation: no installation or build instructions (README.md)
- Documentation: no usage examples (README.md)
- End-of-life runtime: .NET net6.0
- High: security finding (details withheld)
- High: security finding (details withheld)
- Medium: security finding (details withheld)
- Medium: security finding (details withheld)
- Medium: security finding (details withheld)
- No dependency advisory monitoring
- Workflow token permissions not restricted
- WriteOnlyPrivateField (SwaggerHeroes.WebApi/Controllers/V1/HeroesController.cs)
- WriteOnlyPrivateField (SwaggerHeroes.WebApi/Controllers/V2/HeroesController.cs)
- redundant comment (SwaggerHeroes.WebApi/Startup.cs)
- redundant comment (SwaggerHeroes.WebApi/Startup.cs)
API surface
- Unchanged — 2 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
referbruv/SwaggerHeroes 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 7f5c0ec10db4f24a4f2cd42231d14f4e84619bc7 — 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-fa71c66cabd8.