dotnet-scaffold-client-data

Scaffold a client HTTP data service implementing IManage<Name>Service with GenericHttpDataService.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffold a client-side HTTP data service that implements an existing IManage<Name>Service interface using the Umbrella GenericHttpDataService pattern. It registers the service in the client project and updates the server DI from AddScoped to ReplaceScoped.

Core Features & Use Cases

  • Scaffold a client-side data service implementing IManage<Name>Service using GenericHttpDataService.
  • Ensure the ApiUrl matches the controller route api/Manage<Name> and update DI registrations on both client and server.
  • Use Case: Client Blazor components call the server's Manage<Name>Controller via the generated service.

Quick Start

Run the scaffold to generate the client data service and update the DI registrations accordingly.

Frequently Asked Questions about dotnet-scaffold-client-data

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

FAQPage Schema
Do I need an existing server controller before scaffolding a client data service?

You need the dotnet-scaffold-api-data-service-controller pattern to have already run. This ensures the IManage<Name>Service interface and Manage<Name>ControllerService exist in your solution before the client-side scaffolding can be applied.

Can I use this scaffold to align my client data service URL with the server controller route?

Dependency injection registration changes by updating the server DI from AddScoped to ReplaceScoped. The Skill handles updating both client and server DI registrations to ensure the client service correctly calls the server's Manage<Name>Controller.

What is the GenericHttpDataService pattern used for in Umbrella client applications?

Yes, you can use this scaffold to align URLs because it ensures the generated client service's ApiUrl explicitly matches the server's api/Manage<Name> controller route for correct HTTP request routing.

How do I scaffold a client data service for a Blazor app using GenericHttpDataService?

The server DI registration needs to change to ReplaceScoped to properly resolve service lifetimes when the client-side HTTP data service is introduced. This ensures Blazor components route through the generated client service instead of the local server implementation.