dotnet-scaffold-api-data-service-controller

Scaffold an API controller with UmbrellaRepositoryDataService and DI registration.

8|1|Updated Feb 5, 2018
One-click install
npx skills add https://github.com/umbrella-libraries/Umbrella --skill dotnet-scaffold-api-data-service-controller
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-scaffold-api-data-service-controller
Source: https://github.com/umbrella-libraries/Umbrella/tree/main/.ai-shared/skills/dotnet-scaffold-api-data-service-controller
Command: npx skills add https://github.com/umbrella-libraries/Umbrella --skill dotnet-scaffold-api-data-service-controller

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a thin API controller backed by a controller service (UmbrellaRepositoryDataService pattern) to separate concerns and enable reuse of repository logic across the server and client boundaries.

Core Features & Use Cases

  • Scaffold a server-side API controller and a concrete controller service that implements UmbrellaRepositoryDataService.
  • Support Blazor SSR pre-rendering when the client project interface exists, providing a clean extension point for lifecycle hooks.
  • Use this scaffold to standardize a transport-layer wrapper around data services, with predictable DI wiring and extensibility for future enhancements.

Quick Start

Run the scaffold to generate the API data service controller, its server controller service, and DI wiring.

Frequently Asked Questions about dotnet-scaffold-api-data-service-controller

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scaffold a thin API controller with a data service in .NET?

This Skill scaffolds a thin .NET API controller backed by a controller service that implements UmbrellaRepositoryDataService, separating transport-layer logic from business logic for predictable dependency injection and repository reuse.

How does the repository data service pattern work with Blazor SSR pre-rendering?

The repository data service pattern supports Blazor SSR pre-rendering by providing a clean extension point for lifecycle hooks when the client project interface exists, enabling shared repository logic across server and client boundaries.

Can I use this scaffold to standardize dependency injection wiring for API controllers?

Yes, you can use this scaffold to standardize dependency injection wiring for API controllers. It enforces explicit lifecycle hooks, standardizes constructor dependencies, and ensures proper interface placement within your .NET API projects.

What is the best way to separate concerns in a .NET API controller using a repository pattern?

The best way to separate concerns in a .NET API controller is to use a controller service wrapper around repository logic. This scaffold generates a transport-layer wrapper that isolates API endpoints and enables reuse across server and client boundaries.

Why does my scaffolded API controller need a concrete controller service?

Your scaffolded API controller needs a concrete controller service to implement the UmbrellaRepositoryDataService pattern, which ensures repository logic is reusable across server and client boundaries while maintaining explicit lifecycle hooks and standardized model types.