create-api

Scaffold RESTful API endpoints with DTOs, Mapper profiles, Services, Controllers, and DI registrations.

Updated Nov 13, 2025
One-click install
npx skills add https://github.com/changjian-wang/dawning --skill create-api-changjian-wang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-api
Source: https://github.com/changjian-wang/dawning/tree/main/.github/skills/create-api
Command: npx skills add https://github.com/changjian-wang/dawning --skill create-api-changjian-wang

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the repetitive boilerplate code required to create new RESTful API endpoints, ensuring consistency and saving development time.

Core Features & Use Cases

  • Scaffolds complete API endpoints: Generates DTOs (Create, Update, Response, Query), Mapper profiles, Service interfaces and implementations, Controllers, and Dependency Injection registrations.
  • Ensures consistency: Adheres to defined patterns like ApiResult<T>, UnitOfWork, and static Mappers.
  • Use Case: When adding a new feature that requires a new data entity, use this Skill to quickly generate all the necessary backend code for managing that entity via a REST API.

Quick Start

Use the create-api skill to scaffold a new API endpoint for a 'Product' entity with CRUD operations.

Frequently Asked Questions about create-api

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

FAQPage Schema
How do I generate boilerplate code for new RESTful API endpoints in .NET?

To scaffold RESTful API endpoints, this Skill generates complete backend code including DTOs, Mapper profiles, Service interfaces, Controllers, and DI registrations for new data entities in a .NET application. It automates repetitive boilerplate to ensure development consistency.

What patterns do I need to use for .NET API code generation?

For .NET API code generation, your application must adhere to specific patterns including ApiResult<T> for responses, UnitOfWork for data transactions, and static Mappers. The generated service interfaces and implementations rely on these defined structures for consistent endpoint behavior.

Can I scaffold CRUD operations for a new data entity automatically?

Yes, you can scaffold CRUD operations for a new data entity automatically. The Skill generates Create, Update, Response, and Query DTOs alongside the necessary controllers and service implementations, providing complete data management functionality via a REST API.

What is the best way to add new data management functionalities to a .NET application?

The best way to add new data management functionalities to a .NET application is using scaffolding to generate the required backend code. This approach instantly creates DTOs, mappers, services, and controllers, ensuring architectural consistency across your RESTful API endpoints.

Does this scaffolding tool generate dependency injection registrations?

Yes, this scaffolding tool generates dependency injection registrations. Along with controllers and service interfaces, it automatically creates the necessary DI setup to seamlessly integrate the new RESTful API endpoints into your existing .NET application workflow.