REST API with Minimal Endpoints in C#

The work-orders API with ASP.NET-style minimal endpoints and FluentValidation-like rule classes.

Owner: Dev ReyesBusiness SystemsContact ownerAdded 21 Sep 2026Updated 1 Oct 2026
  • Runs out of the box: yes
  • Tests: no
  • CI: no
  • Docs: yes
  • Used in production: no

Learning demo, not turnkey. This example is experimental: it shows an idea that works on the bench, but it has not been reviewed for production use. Expect rough edges and check with the owner before reusing it.

Purpose#

The C# implementation of the shared "work orders" API, built with minimal endpoint handlers and one validator class per request type. It passes the shared acceptance suite except for the cursor-pagination tie-break test, which is tracked as a known gap.

It is marked experimental because the team is still deciding between minimal endpoints and controllers for larger services.

Technologies & features#

Technologies
C#PostgreSQLDocker
Features
REST API Design
Topics
Application Architectureprimary

Lessons learned#

  • Decision

    Minimal endpoints keep each route short, but shared filters (auth, validation) needed a small helper to avoid repetition.

  • Limitation

    Cursor tie-break ordering fails one contract test when two work orders share a timestamp; a composite cursor is planned.

Try it#

Shell
git clone https://git.example.internal/business-systems/rest-work-orders-cs.git
cd rest-work-orders-cs
docker compose up --build   # http://localhost:5000

Commands come from the owner’s README. Credentials are never stored here.

Resources#

StatusExperimental
OwnerDev Reyes
TeamBusiness Systems
Last commit30 Sep 2026
Slugrest-api-csharp
Report a problem to the owner