How it works...

Swagger provides us with a nice and simple way to generate a complete UI documentation. This documentation will be generated by the existing API source code, and can be completed by the XML comments in the application. It also allows us to test each HTTP method (such as Postman), sends values via the generated UI, and selects different content-type headers, such as application/json, or application/xml.

It also provides some client APIs, allowing communication between the endpoints generated by Swagger, and client technologies such as JavaScript, AngularJS, or Xamarin, among others.

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.