Swagger Parameters
This library describes all AutoFilterer parameter into swagger.json and makes visible at Swashbuckle or any other swagger documentation tool.
Set-up
- Install
AutoFilterer.Swagger
package from NuGet - Go your Startup and add following namespace using:
using AutoFilterer.Swagger;
- Find AddSwaggerGen in your Startup and add
UseAutoFiltererParameters()
method like following:
services.AddSwaggerGen(c =>
{
c.UseAutoFiltererParameters(); // <-- Add this here.
// ...
});
Showcase
After you set-up successfully, just launch the swagger and see parameters, they are shown as dropdown now 🚀