Skip to content
| Marketplace
Sign in
Visual Studio>Templates>.NET Core 2.2 REST API Solution Template
.NET Core 2.2 REST API Solution Template

.NET Core 2.2 REST API Solution Template

Anasoft Inc.

|
12,335 installs
| (1) | Free
Generate REST API .NET Core 2.2 solution with API/Domain/Entity layers, DI, JWT or Indentity Server 4 authentication, EF lazy loading, DB concurency, sync/async calls, Swagger test page and T4 code generation example. Generate, run and test REST API service in no time.
Download

Visual Studio project template for Web Api .NET Core 2.2 solutions

Get .NET 8 version

This Visual Studio extension provides an effective and quick start for .NET Core REST Web API service as an extensible solution and saves many hours of exploring the Web for an optimal solution. Save your precious time with this using template and enjoy your life. Generated all required REST API plumbing including DDoS attacks protection. Added to the REST API solution: UnitTests, Swagger tests, Postman tests and BLAZOR client connected to generated REST API!

ApinCoreEx one minute video: www.anasoft.net/apincore/video

Three steps only to create fully functional REST API:

  1. install the extension,
  2. update API appsettings.json with Data Source if not SQLEXPRESS and
  3. run created solution/service which initiates migration/seed services to get the API service info page

In extended vsix version additionally you can:

  1. run successfully default scaffold tests in XUnit integration tests project,
  2. test API with Swagger API specification link on API service info page using test credentials my@email.com mysecretpassword123 to get security token and
  3. extend and customize you API solution by using T4 templates to scaffold 600+ lines of code (for api, controler, domain and test layers) per added entity class; just compile your solution, add new db migration and run successfully T4 generated tests.
  4. generated Postman API tests as json file

Watch YouTube channel with detailed instructions for ApiNCoreEx.vsix

Core features version ApiNCore2.png ApiNCoreE.vsix extension

  • Three layers projects Api, Domain and Entity
  • Automapper
  • Dependency Injection (.Net Core feature)
  • UnitOfWork
  • Generic Service
  • Generic Repository with Entity Framework
  • EF lazy loading and DB concurrency errors
  • Sync and Async calls
  • Generic exception handler
  • passwords encryption
  • Serilog logging with Console and File sinks
  • Migrations and seed from json objects build your empty database
  • JWT authorization/authentication for generated API
  • T4 templates - simple code generation for domain and service classes
  • API versioning

Extended features version ApiNCoreE.png ApiNCoreEx.vsix extension

  • All core features included.
  • Swagger and Swashbuckle API documentation for .NET Core 2 and Swagger authentication
  • Select between Indentity Server 4 or JWT authorization/authentication for generated API
  • T4 templates - smart code generation driven by existing entity classes (inherits from BaseEntity). T4 templates generate code for related domain, service, controller and test classes based on added entity classes in single click. Great time saver!
  • XUnit integration tests project added to the solution for IS4 mode or JWT authentication mode.
  • Postman API tests as json file for import (IS4 and JWT tests). Import and run the tests.

Only four simple steps to extend original solution with your new entity and all the plumbing necessary for an REST API:

  1. add entity class(es),
  2. run Powershell module to run T4 scripts and generate/scaffold all layers' code,
  3. add new database migration to update a database and
  4. run all tests

For instructions and more about free and full-featured VSIX extension visit: www.anasoft.net/apincore

Updates

  • Version 1.9 (.NET Core 2.2)
  • Version 2.0 (added Swagger authentication) (only Extended features version)
  • Version 2.1 (fixed POST/PUT use)
  • Version 3.3 (simple VS T4 templates - code generation for domain and service classes) (only Extended features version)
  • Version 3.5 (EF lazy loading)
  • Version 3.6 (Update Repository Update method )
  • Version 3.7 ( DB concurrency implemented for Update)
  • Version 3.8 ( Add predicate search example service function)
  • Version 3.9 (Update T4 template code generator) (only Extended features version)
  • Version 4.0 (Added a service API versioning library for Microsoft ASP.NET Core and Swagger versioning)
  • Version 4.1 (Added CodeGeneratorUtility.bat to execute all T4s) (only Extended features version)
  • Version 4.2 (EF add-migration fix and added DI code generator)

Screenshots

apicore1.png apicore2.png apicore0.png apicore3__2.png apicore5.png apicore4.png is4.png t4.png t41.png

More extensions with more features:

  • REST API .NET 5.0 with Entity Framework, T4 code generation
  • REST API .NET Core 3.1 with Entity Framework, T4 code generation
  • REST API with Dapper ORM
  • REST API with Python

#Get all these extensions:

  • RestApiNEx(.NET 5.x) extension with EF ORM and T4s Postman, Swagger, DDoS attacks protection and T4s code generator,
  • RestApiNLx(.NET 5.x) extension with simple REST API implementation ,
  • RestApiNDx (.NET 5.x) extensions with Dapper ORM, FluentMigrator, Postman, Swagger, DDoS attacks protection and T4s code generator,
  • RestApiPyEx Python REST API vsix extension (+wrapper) with flask, json, pyodbc, flasgger, swagger and db migration
  • BONUS: Google Drive JQuery plugin demo solution (quickly connect and use GDrive storage from JavaScript)

To get full-featured VSIX extensions visit: www.anasoft.net/restapi

Please give us your rating and ask for more features.

License

(c) Note that there is no restriction to use, copy, modify, and distribute software created with this Visual Studio extension template. Created solution using this template may contain code with unintentional flaws or limitations. Please adjust created solution to your needs and test it before any production use. IN NO EVENT SHALL OWNER OF THIS EXTENSION BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE OWNER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft