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

REST API .NET 7 Solution Template

Anasoft Inc.

|
1,744 installs
| (0) | Free
Generate REST API .NET 7 extensible solution with 3 layers, DI, JWT or IS4 authentication, EF, sync/async calls, Docker support, T4 code scaffolding example. Generate, adapt to your requirements, run and test REST API service in no time.
Download

Visual Studio project template for REST API .NET 7.0 solutions

This Visual Studio (required 2022 v.17) extension provides an effective and quick start for .NET REST Web API service as an extensible solution which saves many hours of exploring the Web for an optimal solution to create REST API service or microservice. Save your precious time with this template, click, build 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, Docker support and BLAZOR client connected to generated REST API!

Get .NET 8 version

Reviews:

  • (D.R. 2021-11-29) - Thank you and congratulate you for an awesome plugin and project, it seriously simplifies things!
  • (Guillaume B. 2021-11-08) - Thanks for your nice API template, it's frankly a very good job.I would recommend it, and I remain attentive to your future creations.
  • (M.D. 2020-10-02) - Thanks for the good work. Your template was a perfect introduction into the API world.
  • (Doug T. 2020-03-30) - Well worth the money even if 5 times the price - I would have paid more.
  • (Helder G. 2019-12-30) - A great saving time template!!

RestApiNEx video: www.anasoft.net/restapi/video

RestApiNEx website: www.anasoft.net/restapi

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 scaffolded 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,
  3. extend and customize you API solution by using T4 templates to scaffold 600+ lines of code (generates API, controller, domain, tests code, Postman tests and BLAZOR client code/pages) per added entity class; just compile your solution, add new db migration and run a service and successfully T4 generated tests,
  4. import to Postman generated API tests as json file or
  5. executes tests and generate/email htlm tests reports by PowerShell script and Newman command line
  6. DDoS API attacks protection service
  7. stored procedure implementation example
  8. minimal APIs implementation (Program and integration tests)
  9. automated tests scaffolding for added required entity members
  10. Blazor test app project connected to generated REST API
  11. Docker option for using/images/containers for API, Blazor web client and database

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

Watch YouTube channel with detailed instructions for generating functional and extendable REST API using VS extensions

Core features version RestApiN.vsix extension

  • Three layers projects Api, Domain and Entity
  • Automapper
  • Dependency Injection
  • UnitOfWork
  • Generic Service
  • Generic Repository with Entity Framework
  • EF lazy loading and DB concurrency errors
  • Sync and Async calls
  • Generic exception handler
  • 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 solution-created1.jpg

Extended features version RestApiNEx.vsix extension

  • All core features included.
  • Swagger and Swashbuckle API documentation for .NET and Swagger authentication
  • Select between Identity 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 json and run the tests.
  • Run Postman tests with PowerShell script with Newman command line implementation
  • DDoS API attacks protection service
  • Stored procedure example added to repository
  • Blazor Web the service client
  • JWT refresh token
  • Docker option for using/images/containers for API, Blazor web client and database

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

  1. INSTAL THE EXTENSION
  2. RUN REST API SERVICE OR RUN TESTS
  3. ADD CUSTOM ENTITY CLASS(ES)
  4. RUN T4 CODE GENERATOR TO SCAFFOLD ALL SUPPORTING CODE

Updates

  • Version 7.0 (Initial)

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

Get all these extensions:

  • RestApiNEx(.NET 6) extension with EF ORM and T4s Postman, Swagger, DDoS attacks protection and T4s code generator,
  • RestApiNLx(.NET 6) extension with simple REST API implementation ,
  • RestApiNDx (.NET 6) 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 extension visit: www.anasoft.net/restapi

solution-created-api2.jpg solution-created-blazor2.jpg

More extensions with more features:anasoft-code.RestApiN

  • REST API .NET 8.0

  • REST API .NET 6.0

  • REST API .NET 5.0

  • REST API .NET Core 3.1

  • REST API .NET Core 2.2

  • REST API with Dapper ORM .NET 6

  • REST API with Python

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