Getting Started
Install AutoFilterer NuGet package.
Via CLI
dotnet add package AutoFilterer
Package Reference
<PackageReference Include="AutoFilterer" Version="2.*"/>
AutoFilterer.Swagger
OPTIONAL: This step is not necessary to work with AutoFilterer but improves Swagger documentation.
Install AutoFilterer.Swagger NuGet package into your Web project.
Go your Startup and add following namespace using:
using AutoFilterer.Swagger;
Find AddSwaggerGen method in your Startup and add
UseAutoFiltererParameters()
method like following:services.AddSwaggerGen(c => { c.UseAutoFiltererParameters(); // <-- Add this here. // ... });
AutoFilterer.Generators
AutoFilterer.Generators aims to generate filter objects from entities automatically via using dotnet source generators.