ASIGMA.AspNetCore.API.Template
1.0.3
Prefix Reserved
See the version list below for details.
dotnet new install ASIGMA.AspNetCore.API.Template::1.0.3
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.3
- Generic Repositories and Services
- Introduced a generic search method.
- Added an overload method for creating paginated lists from
IEnumerablecollections. - Modified the
GetByIdAsyncmethod to enable the ability to include related entities.
- Unit Testing
- Added tests for the
GenericRepositoryandGenericService. - Added tests to ensure controllers are secured.
- Included tests for the weather profile mapper.
- Added tests for the
- WeatherForecastController
- Added other CRUD methods.
- Pagination
- Added an overload method for creating paginated lists from IEnumerable collections.
Setup Instructions
Install Template
dotnet new install ASIGMA.AspNetCore.API.Template::1.0.3Update 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.