Web APIs are pretty useful to share data. One of the most common problems faced while consuming APIs is the lack of documentation and testable features. Swagger bridges that gap by providing interactive documentation and dynamic test interfaces.
There are many articles on how to integrate Swagger on top of your Web APIs. One of the best and simplest ones is Swagger integration in ASP.NET Web API project.