Swagger Options

Hello everyone,

How to manage swagger option from json ? We are create a class and SwaggerOptions add appsettings.Development.json file.

I use .net 5.0 now.

Default options:

Firstly, I created SwaggerOptions in application.Development.json.

Then I created class that meeting the values.

Finally, I used the defined values in appsettings.Development.json.

Github: https://github.com/taskinbinbir/SwaggerOptions

--

--

Computer Engineer, Software Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store