ASIGMA.AspNetCore.API.Template 1.0.4

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet new install ASIGMA.AspNetCore.API.Template::1.0.4
                    
This package contains a .NET Template Package you can call from the shell/command line.

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

  1. Generic Repositories and Services
  2. Automatic Dependency Injection
    • As long as a service inherits the generic service, dependency injection is automatic.
  3. Logging
    • Logging using Serilog.
  4. Unit Testing
    • Unit testing using XUnit, FluentAssertions, and FakeItEasy.
  5. API Versioning
  6. Mapping
    • Mapping using AutoMapper.
  7. Health Checks Configuration
  8. Swagger Integration
  9. Common Helper and Extension Methods
    • Extension methods for Strings, Dates, and other foreseeable use cases.

Improvements in version 1.0.4

  1. WeatherForecastController
    • Modified the GetWeatherForecastsV1Async and GetWeatherForecastByIdV2Async methods to use the SearchAsync method.
  2. Unit Testing
    • Modified the WeatherForecastController tests to account for the SearchAsync method implementation.

Setup Instructions

  1. Install Template

    dotnet new install ASIGMA.AspNetCore.API.Template::1.0.4
    
  2. Update Connection String Ensure you have a proper development environment connection string set in your appsettings.Development.json file.

    {
      "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.

Version Downloads Last Updated
2.0.1 222 3/14/2025
2.0.0 413 3/5/2025
1.0.4 301 6/12/2024
1.0.3 238 6/10/2024
1.0.2 1,966 2/12/2024
1.0.1 970 2/9/2024