Startup.cs
has some methods which can be used to configure swagger to add file upload functionalities , now in which file in .NET Framework can i do the same functionalities?
As you said you want to configure Swagger
in dot net framework
so you need to install Swashbuckle
just open package manager
and type following commands
Install-Package Swashbuckle -Version 5.6.0
then look in your App_Start
file you will find SwaggerConfig.cs
where you can configure it
the minimum, you’ll need this line to enable Swagger and Swagger UI
.
GlobalConfiguration.Configuration
.EnableSwagger(c => c.SingleApiVersion("v1", "A title for your API"))
.EnableSwaggerUi();
Look here for long Explanation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With