Sponsor our weekly .NET and C# newsletter

EF Core and Minimal API Claude skills in a Web API

David Grace David Grace

Download an ASP.NET Core Web API that contains Claude skills for creating an Entity Framework Core entity and adding a Minimal API endpoint.

You can learn how to use Claude Code to create these skills, or watch the video.

Download the code example

You'll need to fill out the code example form. We will send you an email where you can download the code example.

Software

This is the software that will need to be installed onto your machine.

Import the database

This application integrates with a SQL Server database. Inside the Database folder, there is RoundTheCode_Ecommerce.bacpac and RoundTheCode_Ecommerce.bak. Use either of these database backups to import the database to your local SQL Server database server.

The application

Inside Application/Web/Api/appsettings.Development.json, find ConnectionStrings:EcommerceDbContextand point the connection string to your imported database.

Open up RoundTheCode.ECommerce.Skills.slnx, and run the application. The Swagger documentation will load at https://localhost:7266/swagger with these endpoints:

  • /api/products (GET) - Gets all the products that are not deleted

  • /api/categories/test (GET) - A test endpoint created by Claude Code to ensure the Minimal API endpoints are setup correctly

Prompts used

The prompts that were used can be found in Prompts.md.

Plan files

The plans that Claude Code generated before creating the skills can be found in the Plans folder.

Download this code example

Enter your email and we'll send you a download link.

Download this code example

Enter your email and we'll send you a download link.