ASIGMA.AspNetCore.API.Template
1.0.4
Prefix Reserved
See the version list below for details.
dotnet new install ASIGMA.AspNetCore.API.Template::1.0.4
ASP.NET Core Web API Template
Streamline the setup of your ASP.NET Core Web API projects with this quick start template. Designed to accelerate your development process, it takes care of common configurations, allowing you to get your API up and running swiftly. This version of the API is built using the .NET 7.0 SDK.
Considerations
You are using the Repository/Service design pattern.
Features
- Generic Repositories and Services
- Automatic Dependency Injection
- As long as a service inherits the generic service, dependency injection is automatic.
- Logging
- Logging using Serilog.
- Unit Testing
- Unit testing using XUnit, FluentAssertions, and FakeItEasy.
- API Versioning
- Mapping
- Mapping using AutoMapper.
- Health Checks Configuration
- Swagger Integration
- Common Helper and Extension Methods
- Extension methods for Strings, Dates, and other foreseeable use cases.
Improvements in version 1.0.4
- WeatherForecastController
- Modified the
GetWeatherForecastsV1AsyncandGetWeatherForecastByIdV2Asyncmethods to use theSearchAsyncmethod.
- Modified the
- Unit Testing
- Modified the
WeatherForecastControllertests to account for theSearchAsyncmethod implementation.
- Modified the
Setup Instructions
Install Template
dotnet new install ASIGMA.AspNetCore.API.Template::1.0.4Update Connection String Ensure you have a proper development environment connection string set in your
appsettings.Development.jsonfile.{ "ConnectionStrings": { "DefaultConnection": "Host=localhost;Port=5432;Database=your_db;Username=your_user;Password=your_password;SSL Mode=Prefer;Trust Server Certificate=true" } }
License
This project is licensed under the MIT License.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.