Adding summary and XML Documentation
First, we need to turn on the generation of XML documentation in the Build properties page of API App project.

Now uncomment the line that tells Swasbuckle to include XML comments in the Swagger.cs
file.

You now need to implement the function GetXMLCommentsPath()
that would return the XMLComment file for the API.

Now if you run the project, you can see the following in the Swagger UI. Now you can see the summary for API and description for parameters as shown here:
