Integrate swagger with ASP.NET Core minimal APIs

In the previous part of this article series we developed minimal APIs for performing CRUD operations on the Employees table. Once you build the minimal APIs, you typically want to test them by invoking their endpoints. The best way to do so is by building a client application using HttpClient or JavaScript. However, creating such a client can be time consuming. You might want to quickly test the minimal APIs before moving ahead with your development. That's where Swagger can be helpful. In this article we will integrate Swagger support into the minimal APIs and test the CRUD operations.

http://binaryintellect.net/articles/343723a5-1bca-4929-ab5f-f2608f219e62.aspx