Skip to content
CAI
Software that uses CAICheck a score

kawser2133/clean-structured-api-project

38.1

Weak · 8 November 2026

1.7k

lines of production code

C#

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This is a .NET-based REST API application designed to manage customers, orders, and products. It implements a layered architecture with a public API layer, a core domain layer for business logic and data models, and an infrastructure layer handling Entity Framework Core database operations. The system exposes standard CRUD endpoints for these entities, supported by automated unit tests and performance benchmarking capabilities.

Features

Added Customer, Order, and Product API controllers

New API controllers have been introduced for Customers, Orders, and Products, each exposing endpoints for listing (including paginated views), retrieving, creating, updating, and deleting resources. The ProductController also includes a PriceCheck endpoint. These controllers implement standard CRUD operations with error handling and logging, enabling external clients to manage these core business entities via the REST API.

Project.API/Controllers · high confidence

Added core domain entities, repositories, and services for Customer, Order, and Product management

The core project now includes new entity models (Customer, Order, OrderDetails, Product) and their corresponding ViewModels, along with a generic PaginatedDataViewModel for list operations. To support these entities, the update introduces a generic base repository interface (IBaseRepository) and specific repository interfaces (ICustomerRepository, IOrderRepository, etc.), as well as service interfaces (ICustomerService, IOrderService, IProductService) and their implementations. This establishes the foundational data access and business logic layers for managing customers, orders, and products.

Project.Core · high confidence

Added order controller performance benchmarks and service registrations

Users can now evaluate the performance of order-related endpoints through new benchmark tests in the API extension layer. Additionally, the application's dependency injection container is configured to register services and repositories for customers, products, and orders, along with corresponding AutoMapper mappings for their view models.

Project.API/Extensions · high confidence

Added request/response logging middleware and benchmark endpoint

The API now includes a custom middleware that logs incoming HTTP requests and outgoing responses, including headers and status codes, to the application logger. Additionally, a new endpoint at /runbenchmarks has been added to trigger performance benchmarks using BenchmarkDotNet, and the application builder has been updated to register the logging services and map controllers.

Project.API · high confidence

Initial database schema and repository layer for core entities

The application now includes a new Entity Framework Core database context (ApplicationDbContext) and an initial migration that creates tables for Users, Roles, Customers, Products, Orders, and OrderDetails. The data layer is populated with 100 fake customers, 100 fake products, and 1,000 fake orders via the configuration class. A generic BaseRepository and specific repositories (Customer, Product, Order, OrderDetails) have been added to provide data access, including a specialized query for retrieving an order with its associated customer and line items.

Project.Infrastructure · high confidence

Initial project structure and documentation

The repository was initialized with a standard .NET solution structure (Clean.API.Project.sln) containing four main projects: Project.Core, Project.Infrastructure, Project.API, and Project.UnitTest. A .gitignore file was added to exclude common build artifacts and IDE-specific files. The project is licensed under the MIT License, and the README.md was updated to provide comprehensive documentation on the project's architecture, features, and usage instructions.

(repo-wide) · high confidence

Test coverage

Added unit tests for Product domain

Added unit tests for the Product domain, including tests for the ProductController, ProductService, and ProductRepository to verify the behavior of the product management features.

Project.UnitTest · high confidence

Written by cca.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 37 → 38 (+0.8)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 71 → 71 (+0.0)
  • Architecture 84 → 84 (+0.0)
  • Maturity 54 → 59 (+4.7)
  • Readiness 30 → 33 (+2.2)
  • Security 24 → 22 (-1.7)
  • Performance 79 → 94 (+14.8)

Resolved (7)

  • Documentation: no installation or build instructions (README.md)
  • End-of-life runtime: .NET net7.0 (Project.UnitTest/Project.UnitTest.csproj)
  • Low XML-doc coverage: Project.API (Project.API/Project.API.csproj)
  • Low XML-doc coverage: Project.Core (Project.Core/Project.Core.csproj)
  • Low XML-doc coverage: Project.Infrastructure (Project.Infrastructure/Project.Infrastructure.csproj)
  • Low coverage: Project.Core/Exceptions/NotFoundException.cs (Project.Core/Exceptions/NotFoundException.cs)
  • Vulnerable: AutoMapper

New (22)

  • End-of-life runtime: .NET net7.0 (Project.API/Project.API.csproj)
  • End-of-life runtime: .NET net7.0 (Project.Core/Project.Core.csproj)
  • End-of-life runtime: .NET net7.0 (Project.Infrastructure/Project.Infrastructure.csproj)
  • End-of-life runtime: .NET net7.0 (Project.UnitTest/Project.UnitTest.csproj)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • Medium: security finding (details withheld)
  • …and 2 more

Architecture

  • Unchanged — 1 containers · 0 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

kawser2133/clean-structured-api-project 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 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 8a20e56ff1a7b57460c9c9469d2554708c6df75d — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.