If you want to learn how to add swagger in ASP.Net Core then check my previous post. In this post, I will show you how to customize swagger UI to upload a file in ASP.Net Core Web API project. First, let’s add an action which will be responsible to upload a file in our API. If you want to know more about how to upload a file (from Postman) and save it in Azure storage then check my previous post.
In this post i will show how to add, configure and customize swagger in ASP.NET Core web API project.
Let’s start by creating new ASP.NET Core web API project and adding swagger in our project. For .NET there is open source project swashbuckle which provide swagger implementation. We need to get it from nuget.