You're unable to read via this Friend Link since it's expired. Learn more
Member-only story
NetCore REST API/Dapper/SQLKata with VS Template KissApi
I have been searching for a Visual Studio template to generate a Clean Architecture ASP.NET Core REST API solution with boilerplate code for advanced features CRUD/Paging and apparatus Repository/Unit-of-Work, Dapper, SQLKata, Swashbuckle, and GenFu. Unable to find one, I decided to create the KissApi (Keep-It-Stupid-Simple Api) template and share it in the Visual Studio marketplace.
In this tutorial, I will go over the steps to download/install the template and use the template to rapidly prototype REST API.
Overview of KissApi template
Developers can use the Visual Studio template KissAPI to scaffold a clean architecture REST API solution consisting of four projects
- Domain
- Application
- Persistence
- WebApi
The solution tech stack provides loosely-coupled and inverted-dependency architecture with good design patterns and practices.
- ASP.NET CORE — a framework for creating RESTful services, also known as web APIs, using C#
- Repository and Unit of Work — an abstraction layer between the data access layer and the controller
- Dapper — the king of the C# Micro ORM for simple object mapper for .NET
- SQLKata — a fluent SQL query builder for C#
- Swashbuckle — Seamlessly adds a Swagger to WebApi projects! Combines ApiExplorer and Swagger/swagger-ui to provide a rich discovery, documentation, and playground experience to your API consumers
- GenFu — a realistic, easy to use mock data library
Download KissAPI Template
You can download the VSIXTemplateKissAPI from the Visual Studio Marketplace.
After download, click on the VSIXTemplateKissAPI.vsix to install the extension. If you are new to Visual Studio Extension, visit Manage extensions for Visual Studio for installation instructions.
